Date: Fri, 14 Jun 2013 00:03:44 +0000 (UTC) From: Neel Natu <neel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251720 - in head/sys/amd64: amd64 include Message-ID: <201306140003.r5E03iiD070704@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: neel Date: Fri Jun 14 00:03:43 2013 New Revision: 251720 URL: http://svnweb.freebsd.org/changeset/base/251720 Log: Remove unused macros PTESHIFT, PDESHIFT, PDPESHIFT and PML4ESHIFT. Reviewed by: alc Modified: head/sys/amd64/amd64/genassym.c head/sys/amd64/amd64/pmap.c head/sys/amd64/include/pmap.h Modified: head/sys/amd64/amd64/genassym.c ============================================================================== --- head/sys/amd64/amd64/genassym.c Fri Jun 14 00:02:29 2013 (r251719) +++ head/sys/amd64/amd64/genassym.c Fri Jun 14 00:03:43 2013 (r251720) @@ -109,7 +109,6 @@ ASSYM(addr_PML4map, addr_PML4map); ASSYM(addr_PML4pml4e, addr_PML4pml4e); ASSYM(PDESIZE, sizeof(pd_entry_t)); ASSYM(PTESIZE, sizeof(pt_entry_t)); -ASSYM(PTESHIFT, PTESHIFT); ASSYM(PAGE_SHIFT, PAGE_SHIFT); ASSYM(PAGE_MASK, PAGE_MASK); ASSYM(PDRSHIFT, PDRSHIFT); Modified: head/sys/amd64/amd64/pmap.c ============================================================================== --- head/sys/amd64/amd64/pmap.c Fri Jun 14 00:02:29 2013 (r251719) +++ head/sys/amd64/amd64/pmap.c Fri Jun 14 00:03:43 2013 (r251720) @@ -320,9 +320,6 @@ static void _pmap_unwire_ptp(pmap_t pmap static int pmap_unuse_pt(pmap_t, vm_offset_t, pd_entry_t, vm_page_t *); static vm_offset_t pmap_kmem_choose(vm_offset_t addr); -CTASSERT(1 << PDESHIFT == sizeof(pd_entry_t)); -CTASSERT(1 << PTESHIFT == sizeof(pt_entry_t)); - /* * Move the kernel virtual free pointer to the next * 2MB. This is used to help improve performance Modified: head/sys/amd64/include/pmap.h ============================================================================== --- head/sys/amd64/include/pmap.h Fri Jun 14 00:02:29 2013 (r251719) +++ head/sys/amd64/include/pmap.h Fri Jun 14 00:03:43 2013 (r251720) @@ -157,11 +157,6 @@ typedef u_int64_t pt_entry_t; typedef u_int64_t pdp_entry_t; typedef u_int64_t pml4_entry_t; -#define PML4ESHIFT (3) -#define PDPESHIFT (3) -#define PTESHIFT (3) -#define PDESHIFT (3) - /* * Address of current address space page table maps and directories. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306140003.r5E03iiD070704>