mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
amd64 pmap: be more verbose around entering and leaving LA57 trampoline
(cherry picked from commit 2912c2fbd44072b7372c24dd34392c01f5104497)
This commit is contained in:
parent
6f357a211a
commit
0eec03f113
1 changed files with 7 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue