1
0
Fork 0
mirror of https://gitlab.com/bztsrc/bootboot.git synced 2023-02-13 20:54:32 -05:00

Same cr0 as in bios

This commit is contained in:
bzt 2019-03-15 22:38:27 +01:00
parent d18710e7ea
commit 6528f753c7
3 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View file

@ -1205,11 +1205,11 @@ VOID EFIAPI bootboot_startcore(IN VOID* buf)
// enable SSE
__asm__ __volatile__ (
"mov %%cr0, %%eax;"
"btsw $2, %%ax;"
"btrw $1, %%ax;"
"mov %%rax, %%cr0;"
"mov %%cr4, %%rax;"
"movq %%cr0, %%rax;"
"andb $0xfb, %%al;"
"orl $0xC0000001, %%eax;"
"movq %%rax, %%cr0;"
"movq %%cr4, %%rax;"
"orw $3 << 8, %%ax;"
"mov %%rax, %%cr4"
: );