mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
hw_x86_64: Set system control flags of cr0 register
Enable paging, write protection, caching and native FPU error reporting, see Intel SDM Vol. 3A, section 2.5.
This commit is contained in:
parent
032fc3b190
commit
59bba7624f
@ -45,6 +45,15 @@
|
||||
btsl $11, %eax
|
||||
wrmsr
|
||||
|
||||
/* Enable paging, write protection, caching and FPU error reporting */
|
||||
movl %cr0, %eax
|
||||
btsl $5, %eax
|
||||
btsl $16, %eax
|
||||
btrl $29, %eax
|
||||
btrl $30, %eax
|
||||
btsl $31, %eax
|
||||
movl %eax, %cr0
|
||||
|
||||
/*
|
||||
* 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