mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 02:01:38 +00:00
hw_x86_64: Enable IA-32e mode and execute-disable
Set bits 8 (LME) and 11 (NXE) in the IA32_EFER MSR to enable IA-32e mode and execute-disable.
This commit is contained in:
parent
d23cd7e5ff
commit
032fc3b190
@ -38,6 +38,13 @@
|
||||
leal _kernel_pml4, %eax
|
||||
mov %eax, %cr3
|
||||
|
||||
/* Enable IA-32e mode and execute-disable */
|
||||
movl $0xc0000080, %ecx
|
||||
rdmsr
|
||||
btsl $8, %eax
|
||||
btsl $11, %eax
|
||||
wrmsr
|
||||
|
||||
/*
|
||||
* Install initial temporary environment that is replaced later by the
|
||||
* environment that init_main_thread creates.
|
||||
|
Loading…
x
Reference in New Issue
Block a user