mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
amd64 la57_trampoline: disable EFER.LME around setting CR4.LA57
(cherry picked from commit b7ea2b69ef666ee8cdc6dcc814d610df0a7f0999)
This commit is contained in:
parent
7a1723912e
commit
3f79c8c46f
1 changed files with 10 additions and 0 deletions
|
|
@ -114,11 +114,21 @@ l1: movl $(3<<3),%eax
|
|||
andl $~CR0_PG,%eax
|
||||
movl %eax,%cr0
|
||||
|
||||
movl $MSR_EFER,%ecx
|
||||
rdmsr
|
||||
andl $~EFER_LME,%eax
|
||||
wrmsr
|
||||
|
||||
movl %cr4,%eax
|
||||
orl $CR4_LA57,%eax
|
||||
movl %eax,%cr4
|
||||
|
||||
movl %edi,%cr3
|
||||
|
||||
rdmsr
|
||||
orl $EFER_LME,%eax
|
||||
wrmsr
|
||||
|
||||
movl %ebp,%cr0
|
||||
jmp 1f
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue