From owner-svn-src-projects@FreeBSD.ORG Wed Aug 20 15:56:18 2014 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C4862300; Wed, 20 Aug 2014 15:56:18 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8D889301D; Wed, 20 Aug 2014 15:56:18 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7KFuIHL074735; Wed, 20 Aug 2014 15:56:18 GMT (envelope-from andrew@FreeBSD.org) Received: (from andrew@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s7KFuIgm074734; Wed, 20 Aug 2014 15:56:18 GMT (envelope-from andrew@FreeBSD.org) Message-Id: <201408201556.s7KFuIgm074734@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: andrew set sender to andrew@FreeBSD.org using -f From: Andrew Turner Date: Wed, 20 Aug 2014 15:56:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r270219 - projects/arm64/sys/arm64/arm64 X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2014 15:56:18 -0000 Author: andrew Date: Wed Aug 20 15:56:18 2014 New Revision: 270219 URL: http://svnweb.freebsd.org/changeset/base/270219 Log: Implement pmap_remove Modified: projects/arm64/sys/arm64/arm64/pmap.c Modified: projects/arm64/sys/arm64/arm64/pmap.c ============================================================================== --- projects/arm64/sys/arm64/arm64/pmap.c Wed Aug 20 15:56:13 2014 (r270218) +++ projects/arm64/sys/arm64/arm64/pmap.c Wed Aug 20 15:56:18 2014 (r270219) @@ -746,8 +746,18 @@ pmap_growkernel(vm_offset_t addr) void pmap_remove(pmap_t pmap, vm_offset_t sva, vm_offset_t eva) { + pt_entry_t *l3; + vm_offset_t va_next; - panic("pmap_remove"); + KASSERT(pmap == pmap_kernel(), ("Only kernel mappings for now")); + PMAP_LOCK(pmap); + for (; sva < eva; sva = va_next) { + va_next = sva + L3_SIZE; + l3 = pmap_l3(pmap, sva); + if (l3 != NULL) + *l3 = 0; + } + PMAP_UNLOCK(pmap); } /*