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:
parent
d18710e7ea
commit
6528f753c7
3 changed files with 5 additions and 5 deletions
BIN
bootboot.efi
BIN
bootboot.efi
Binary file not shown.
BIN
bootboot.rom
BIN
bootboot.rom
Binary file not shown.
|
@ -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"
|
||||
: );
|
||||
|
|
Loading…
Reference in a new issue