Feat: Better IO functions & Refractor of "colors.h" to "stdio.h"
This commit is contained in:
@@ -449,6 +449,16 @@ protected_mode:
|
||||
mov eax, cr4
|
||||
or eax, 0x20
|
||||
mov cr4, eax
|
||||
|
||||
; Enable FXSAVE/FXRSTOR and unmask SSE exceptions
|
||||
mov eax, cr0
|
||||
and ax, 0xFFFB ; clear EM
|
||||
or ax, 0x0002 ; set MP
|
||||
mov cr0, eax
|
||||
|
||||
mov eax, cr4
|
||||
or ax, 0x0600 ; set OSFXSR | OSXMMEXCPT
|
||||
mov cr4, eax
|
||||
|
||||
; Enable Long Mode
|
||||
mov ecx, 0xC0000080
|
||||
|
||||
Reference in New Issue
Block a user