diff options
author | alc <alc@FreeBSD.org> | 2008-06-29 19:13:27 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-06-29 19:13:27 +0000 |
commit | 828df4dc3dac63293ab21a8e582906b067d91183 (patch) | |
tree | 12646205872bc0d8d8a96b21da50681ea1463abb /sys/amd64 | |
parent | 4a9078c9b0025dc0e579edc1488542b19900b611 (diff) | |
download | FreeBSD-src-828df4dc3dac63293ab21a8e582906b067d91183.zip FreeBSD-src-828df4dc3dac63293ab21a8e582906b067d91183.tar.gz |
Strictly speaking, the definition of VM_MAX_KERNEL_ADDRESS is wrong. However,
in practice, the error (currently) makes no difference because the computation
performed by KVADDR() hides the error. This revision fixes the error.
Also, eliminate a (now) unused definition.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/include/pmap.h | 1 | ||||
-rw-r--r-- | sys/amd64/include/vmparam.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index bda82cb..dfd66d1 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -116,7 +116,6 @@ #define NKPML4E 1 /* number of kernel PML4 slots */ #define NKPDPE 5 /* number of kernel PDP slots */ -#define NKPDE (NKPDPE*NPDEPG) /* number of kernel PD slots */ #define NUPML4E (NPML4EPG/2) /* number of userland PML4 pages */ #define NUPDPE (NUPML4E*NPDPEPG)/* number of userland PDP pages */ diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h index f1cd14e..b091495 100644 --- a/sys/amd64/include/vmparam.h +++ b/sys/amd64/include/vmparam.h @@ -152,7 +152,7 @@ * messy at times, but hey, we'll do anything to save a page :-) */ -#define VM_MAX_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-1, NKPDE-1, NPTEPG-1) +#define VM_MAX_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-1, NPDEPG-1, NPTEPG-1) #define VM_MIN_KERNEL_ADDRESS KVADDR(KPML4I, KPDPI, 0, 0) #define DMAP_MIN_ADDRESS KVADDR(DMPML4I, 0, 0, 0) |