Date: Thu, 7 May 2009 05:42:13 +0000 (UTC) From: Alan Cox <alc@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r191873 - in head/sys/arm: arm include Message-ID: <200905070542.n475gDxe041775@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: alc Date: Thu May 7 05:42:13 2009 New Revision: 191873 URL: http://svn.freebsd.org/changeset/base/191873 Log: Define the kernel pmap in the same way on arm as on every other architecture. Eliminate an unused definition. Tested by: cognet Modified: head/sys/arm/arm/pmap.c head/sys/arm/include/pmap.h Modified: head/sys/arm/arm/pmap.c ============================================================================== --- head/sys/arm/arm/pmap.c Thu May 7 03:39:23 2009 (r191872) +++ head/sys/arm/arm/pmap.c Thu May 7 05:42:13 2009 (r191873) @@ -224,7 +224,6 @@ extern void *end; vm_offset_t kernel_vm_end = 0; struct pmap kernel_pmap_store; -pmap_t kernel_pmap; static pt_entry_t *csrc_pte, *cdst_pte; static vm_offset_t csrcp, cdstp; @@ -2337,7 +2336,6 @@ pmap_bootstrap(vm_offset_t firstaddr, vm firstaddr, loadaddr)); virtual_avail = firstaddr; - kernel_pmap = &kernel_pmap_store; kernel_pmap->pm_l1 = l1; kernel_l1pa = l1pt->pv_pa; Modified: head/sys/arm/include/pmap.h ============================================================================== --- head/sys/arm/include/pmap.h Thu May 7 03:39:23 2009 (r191872) +++ head/sys/arm/include/pmap.h Thu May 7 05:42:13 2009 (r191873) @@ -138,7 +138,8 @@ struct pmap { typedef struct pmap *pmap_t; #ifdef _KERNEL -extern pmap_t kernel_pmap; +extern struct pmap kernel_pmap_store; +#define kernel_pmap (&kernel_pmap_store) #define pmap_kernel() kernel_pmap #define PMAP_ASSERT_LOCKED(pmap) \ @@ -166,8 +167,6 @@ typedef struct pv_entry { int pv_flags; /* flags (wired, etc...) */ } *pv_entry_t; -#define PV_ENTRY_NULL ((pv_entry_t) 0) - #ifdef _KERNEL boolean_t pmap_get_pde_pte(pmap_t, vm_offset_t, pd_entry_t **, pt_entry_t **);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905070542.n475gDxe041775>