diff options
author | Mark Johnston <markj@FreeBSD.org> | 2021-03-24 13:55:22 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2021-03-31 13:16:11 +0000 |
commit | 5e96fbdfc4218a4bdb1ca1e8b7ea85ba8fb808f3 (patch) | |
tree | f8aff26e96795c9745eed73939b538fefc154a7d | |
parent | 381ba4357c7452d9a5ee38832f0adf47b2428a48 (diff) | |
download | src-5e96fbdfc4218a4bdb1ca1e8b7ea85ba8fb808f3.tar.gz src-5e96fbdfc4218a4bdb1ca1e8b7ea85ba8fb808f3.zip |
amd64: Make KPDPphys local to pmap.c
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 7ae2e703366e5ac56373509ececae53ecaa5bc59)
-rw-r--r-- | sys/amd64/amd64/pmap.c | 2 | ||||
-rw-r--r-- | sys/amd64/include/pmap.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index bd23fd176e88..54dbadfb95c3 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -419,7 +419,7 @@ static int pat_index[PAT_INDEX_SIZE]; /* cache mode to PAT index conversion */ static u_int64_t KPTphys; /* phys addr of kernel level 1 */ static u_int64_t KPDphys; /* phys addr of kernel level 2 */ -u_int64_t KPDPphys; /* phys addr of kernel level 3 */ +static u_int64_t KPDPphys; /* phys addr of kernel level 3 */ u_int64_t KPML4phys; /* phys addr of kernel level 4 */ u_int64_t KPML5phys; /* phys addr of kernel level 5, if supported */ diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index ef69ba9b6f9f..8ba654cb2e7c 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -303,7 +303,6 @@ typedef u_int64_t pml5_entry_t; #define P5Dmap ((pd_entry_t *)(addr_P5Dmap)) extern int nkpt; /* Initial number of kernel page tables */ -extern u_int64_t KPDPphys; /* physical address of kernel level 3 */ extern u_int64_t KPML4phys; /* physical address of kernel level 4 */ extern u_int64_t KPML5phys; /* physical address of kernel level 5 */ |