diff options
author | neel <neel@FreeBSD.org> | 2013-06-14 00:03:43 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2013-06-14 00:03:43 +0000 |
commit | 10fa07d0e379817b036ec611dc9106a0892be16c (patch) | |
tree | 161376df25b61b6bd7b17548363ce8eb86181903 /sys/amd64 | |
parent | 546690b392f139d563e15f3054e3f0d409705a1b (diff) | |
download | FreeBSD-src-10fa07d0e379817b036ec611dc9106a0892be16c.zip FreeBSD-src-10fa07d0e379817b036ec611dc9106a0892be16c.tar.gz |
Remove unused macros PTESHIFT, PDESHIFT, PDPESHIFT and PML4ESHIFT.
Reviewed by: alc
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/genassym.c | 1 | ||||
-rw-r--r-- | sys/amd64/amd64/pmap.c | 3 | ||||
-rw-r--r-- | sys/amd64/include/pmap.h | 5 |
3 files changed, 0 insertions, 9 deletions
diff --git a/sys/amd64/amd64/genassym.c b/sys/amd64/amd64/genassym.c index 4448a49..3043bb5 100644 --- a/sys/amd64/amd64/genassym.c +++ b/sys/amd64/amd64/genassym.c @@ -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); diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 272158d..8dcf232 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -320,9 +320,6 @@ static void _pmap_unwire_ptp(pmap_t pmap, vm_offset_t va, vm_page_t m, 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 diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 6d76ec3..dc02e49 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -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. */ |