From owner-svn-src-all@FreeBSD.ORG Thu Feb 26 20:38:38 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11CDA1065706; Thu, 26 Feb 2009 20:38:38 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F15008FC08; Thu, 26 Feb 2009 20:38:37 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1QKcbVc037677; Thu, 26 Feb 2009 20:38:37 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1QKcbHL037672; Thu, 26 Feb 2009 20:38:37 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <200902262038.n1QKcbHL037672@svn.freebsd.org> From: John Baldwin Date: Thu, 26 Feb 2009 20:38:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189088 - in stable/7/sys: . arm/arm contrib/pf dev/ath/ath_hal dev/cxgb ia64/ia64 powerpc/powerpc sparc64/sparc64 sun4v/sun4v X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 20:38:39 -0000 Author: jhb Date: Thu Feb 26 20:38:37 2009 New Revision: 189088 URL: http://svn.freebsd.org/changeset/base/189088 Log: MFC: Add a stub for pmap_align_superpage() on machines that don't (yet) implement pmap-level support for superpages. Pointy hat to: jhb Modified: stable/7/sys/ (props changed) stable/7/sys/arm/arm/pmap.c stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) stable/7/sys/ia64/ia64/pmap.c stable/7/sys/powerpc/powerpc/pmap_dispatch.c stable/7/sys/sparc64/sparc64/pmap.c stable/7/sys/sun4v/sun4v/pmap.c Modified: stable/7/sys/arm/arm/pmap.c ============================================================================== --- stable/7/sys/arm/arm/pmap.c Thu Feb 26 20:32:11 2009 (r189087) +++ stable/7/sys/arm/arm/pmap.c Thu Feb 26 20:38:37 2009 (r189088) @@ -3829,7 +3829,8 @@ pmap_pinit(pmap_t pmap) bzero(&pmap->pm_stats, sizeof pmap->pm_stats); pmap->pm_stats.resident_count = 1; if (vector_page < KERNBASE) { - pmap_enter(pmap, vector_page, PHYS_TO_VM_PAGE(systempage.pv_pa), + pmap_enter(pmap, vector_page, + VM_PROT_READ, PHYS_TO_VM_PAGE(systempage.pv_pa), VM_PROT_READ, 1); } return (1); @@ -4559,6 +4560,16 @@ pmap_addr_hint(vm_object_t obj, vm_offse return(addr); } +/* + * Increase the starting virtual address of the given mapping if a + * different alignment might result in more superpage mappings. + */ +void +pmap_align_superpage(vm_object_t object, vm_ooffset_t offset, + vm_offset_t *addr, vm_size_t size) +{ +} + /* * Map a set of physical memory pages into the kernel virtual Modified: stable/7/sys/ia64/ia64/pmap.c ============================================================================== --- stable/7/sys/ia64/ia64/pmap.c Thu Feb 26 20:32:11 2009 (r189087) +++ stable/7/sys/ia64/ia64/pmap.c Thu Feb 26 20:38:37 2009 (r189088) @@ -2237,6 +2237,16 @@ pmap_addr_hint(vm_object_t obj, vm_offse return addr; } +/* + * Increase the starting virtual address of the given mapping if a + * different alignment might result in more superpage mappings. + */ +void +pmap_align_superpage(vm_object_t object, vm_ooffset_t offset, + vm_offset_t *addr, vm_size_t size) +{ +} + #include "opt_ddb.h" #ifdef DDB Modified: stable/7/sys/powerpc/powerpc/pmap_dispatch.c ============================================================================== --- stable/7/sys/powerpc/powerpc/pmap_dispatch.c Thu Feb 26 20:32:11 2009 (r189087) +++ stable/7/sys/powerpc/powerpc/pmap_dispatch.c Thu Feb 26 20:38:37 2009 (r189088) @@ -296,6 +296,16 @@ pmap_addr_hint(vm_object_t obj, vm_offse return (MMU_ADDR_HINT(mmu_obj, obj, addr, size)); } +/* + * Increase the starting virtual address of the given mapping if a + * different alignment might result in more superpage mappings. + */ +void +pmap_align_superpage(vm_object_t object, vm_ooffset_t offset, + vm_offset_t *addr, vm_size_t size) +{ +} + /* Modified: stable/7/sys/sparc64/sparc64/pmap.c ============================================================================== --- stable/7/sys/sparc64/sparc64/pmap.c Thu Feb 26 20:32:11 2009 (r189087) +++ stable/7/sys/sparc64/sparc64/pmap.c Thu Feb 26 20:38:37 2009 (r189088) @@ -1963,3 +1963,13 @@ pmap_addr_hint(vm_object_t object, vm_of return (va); } + +/* + * Increase the starting virtual address of the given mapping if a + * different alignment might result in more superpage mappings. + */ +void +pmap_align_superpage(vm_object_t object, vm_ooffset_t offset, + vm_offset_t *addr, vm_size_t size) +{ +} Modified: stable/7/sys/sun4v/sun4v/pmap.c ============================================================================== --- stable/7/sys/sun4v/sun4v/pmap.c Thu Feb 26 20:32:11 2009 (r189087) +++ stable/7/sys/sun4v/sun4v/pmap.c Thu Feb 26 20:38:37 2009 (r189088) @@ -431,6 +431,16 @@ pmap_addr_hint(vm_object_t object, vm_of } /* + * Increase the starting virtual address of the given mapping if a + * different alignment might result in more superpage mappings. + */ +void +pmap_align_superpage(vm_object_t object, vm_ooffset_t offset, + vm_offset_t *addr, vm_size_t size) +{ +} + +/* * Bootstrap the system enough to run with virtual memory. */ void