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
|
// 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"
|
||||||
: );
|
: );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue