Initialize boot CPU structures inside kernel on AMD64

This commit is contained in:
2023-01-29 00:45:17 +01:00
parent 8733a23b20
commit 7bf4a9ab8d
9 changed files with 272 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ XTCDECL
VOID
ArHalt();
XTAPI
VOID
ArInitializeProcessor(VOID);
XTCDECL
VOID
ArInvalidateTlbEntry(IN PVOID Address);

View File

@@ -46,6 +46,10 @@
#define CR4_XSAVE 0x00020000
#define CR4_RESERVED3 0xFFFC0000
/* Descriptors size */
#define GDT_ENTRIES 128
#define IDT_ENTRIES 256
/* Initial MXCSR control */
#define INITIAL_MXCSR 0x1F80