git: ad6b949da57e - stable/14 - pmap_bootstrap_la57(): reload IDT

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Mon, 23 Sep 2024 13:03:49 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=ad6b949da57ea6a34a4aaaf721fe36fad053d14a

commit ad6b949da57ea6a34a4aaaf721fe36fad053d14a
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-16 16:36:31 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-09-23 13:03:07 +0000

    pmap_bootstrap_la57(): reload IDT
    
    (cherry picked from commit bbb00b1719f11c58efd5375aebc30ccd13bf0906)
---
 sys/amd64/amd64/pmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 0db1af00874c..72929f98a0cb 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -2264,6 +2264,7 @@ pmap_bootstrap_la57(void *arg __unused)
 	ssdtosyssd(&gdt_segs[GPROC0_SEL],
 	    (struct system_segment_descriptor *)&__pcpu[0].pc_gdt[GPROC0_SEL]);
 	ltr(GSEL(GPROC0_SEL, SEL_KPL));
+	lidt(&r_idt);
 
 	if (bootverbose)
 		printf("LA57 trampoline returned, CR4 %#lx\n", rcr4());