mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:57:34 +00:00
Kernel: Replace inline assembly for turning on IA32_EFER.NXE with MSR
This fixes a triple fault that occurs when compiling serenity with the i686 clang toolchain. (The underlying issue is that the old inline assembly did not specify that it clobbered the eax/ecx/edx registers and as such the compiler assumed they were not changed and used their values across it) Co-authored-by: Brian Gianforcaro <bgianf@serenityos.org>
This commit is contained in:
parent
a9e9bd8d84
commit
bc7b0a8986
2 changed files with 3 additions and 5 deletions
|
@ -32,6 +32,7 @@ enum class ProcessorSpecificDataID {
|
|||
# define MSR_FS_BASE 0xc0000100
|
||||
# define MSR_GS_BASE 0xc0000101
|
||||
#endif
|
||||
#define MSR_IA32_EFER 0xc0000080
|
||||
|
||||
// FIXME: Find a better place for these
|
||||
extern "C" void thread_context_first_enter(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue