diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index f23488a2174..bd8be74d302 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2247,6 +2247,10 @@ pmap_bootstrap_la57(void *arg __unused) la57_trampoline_gdt - la57_trampoline + VM_PAGE_TO_PHYS(m_code); la57_tramp = (void (*)(uint64_t))VM_PAGE_TO_PHYS(m_code); invlpg((vm_offset_t)la57_tramp); + if (bootverbose) { + printf("entering LA57 trampoline at %#lx\n", + (vm_offset_t)la57_tramp); + } la57_tramp(KPML5phys); /* @@ -2261,6 +2265,9 @@ pmap_bootstrap_la57(void *arg __unused) (struct system_segment_descriptor *)&__pcpu[0].pc_gdt[GPROC0_SEL]); ltr(GSEL(GPROC0_SEL, SEL_KPL)); + if (bootverbose) + printf("LA57 trampoline returned, CR4 %#lx\n", rcr4()); + /* * Now unmap the trampoline, and free the pages. * Clear pml5 entry used for 1:1 trampoline mapping.