git: 0eec03f113a4 - stable/14 - amd64 pmap: be more verbose around entering and leaving LA57 trampoline
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Sep 2024 13:03:39 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0eec03f113a4de0f9bd2aca2d4620e9d1b4c8d1f commit 0eec03f113a4de0f9bd2aca2d4620e9d1b4c8d1f Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2021-11-06 06:10:16 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-09-23 13:03:06 +0000 amd64 pmap: be more verbose around entering and leaving LA57 trampoline (cherry picked from commit 2912c2fbd44072b7372c24dd34392c01f5104497) --- sys/amd64/amd64/pmap.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index f23488a2174d..bd8be74d3022 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.