feat(loader, kernel): impl part of loader and initialize kernel structure
This commit is contained in:
15
arch/x86_64/boot/include/processor_flags.h
Normal file
15
arch/x86_64/boot/include/processor_flags.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#define X86_CR0_PE 0x00000001
|
||||
#define X86_CR0_MP 0x00000002
|
||||
#define X86_CR0_ET 0x00000004
|
||||
#define X86_CR0_NE 0x00000020
|
||||
#define X86_CR0_WP 0x00010000
|
||||
#define X86_CR0_AM 0x00040000
|
||||
#define X86_CR0_PG 0x80000000
|
||||
#define CR0_STATE (X86_CR0_PE | X86_CR0_MP | X86_CR0_ET | \
|
||||
X86_CR0_NE | X86_CR0_WP | X86_CR0_AM | \
|
||||
X86_CR0_PG)
|
||||
#define X86_CR4_PAE 0x00000020
|
||||
#define X86_CR4_OSFXSR 0x00000200
|
||||
#define X86_CR4_OSXMMEXCPT 0x00000400
|
||||
#define MSR_EFER 0xc0000080
|
||||
#define _EFER_LME 8
|
||||
Reference in New Issue
Block a user