From 8179f2a7753d51767d7dcaae53f8ba0d1dcdf8db Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 17 Sep 2022 04:35:20 +0300 Subject: [PATCH] amd64 la57_trampoline: jump immediately after re-enabling paging (cherry picked from commit 180c8ab079950acb15c6629ce293055ea0117b39) --- sys/amd64/amd64/locore.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/amd64/amd64/locore.S b/sys/amd64/amd64/locore.S index e52d36125af..a51e5047fe5 100644 --- a/sys/amd64/amd64/locore.S +++ b/sys/amd64/amd64/locore.S @@ -119,8 +119,9 @@ l1: movl $(3<<3),%eax movl %edi,%cr3 movl %edx,%cr0 + jmp 1f - pushl $(1<<3) +1: pushl $(1<<3) pushl %ebx lretl .code64