diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 837953e2d17..d645be31867 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -7562,8 +7562,6 @@ pmap_pti_free_page(vm_page_t m) return (true); } -extern char kernphys[], etext[]; - static void pmap_pti_init(void) { diff --git a/sys/amd64/include/cpu.h b/sys/amd64/include/cpu.h index 80cf8040830..58662ad9800 100644 --- a/sys/amd64/include/cpu.h +++ b/sys/amd64/include/cpu.h @@ -70,6 +70,7 @@ struct cpu_ops { extern struct cpu_ops cpu_ops; extern char btext[]; extern char etext[]; +extern char kernphys[]; /* Resume hook for VMM. */ extern void (*vmm_resume_p)(void);