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 // enable SSE
__asm__ __volatile__ ( __asm__ __volatile__ (
"mov %%cr0, %%eax;" "movq %%cr0, %%rax;"
"btsw $2, %%ax;" "andb $0xfb, %%al;"
"btrw $1, %%ax;" "orl $0xC0000001, %%eax;"
"mov %%rax, %%cr0;" "movq %%rax, %%cr0;"
"mov %%cr4, %%rax;" "movq %%cr4, %%rax;"
"orw $3 << 8, %%ax;" "orw $3 << 8, %%ax;"
"mov %%rax, %%cr4" "mov %%rax, %%cr4"
: ); : );