diff options
author | dzwdz | 2022-08-28 22:23:05 +0200 |
---|---|---|
committer | dzwdz | 2022-08-28 22:23:20 +0200 |
commit | f2eb3a78c7b69c4b8e118d91327cc5c1016481fc (patch) | |
tree | 152904ceda01fb7d067819dc483aab91d2ccd91c /src/kernel/arch/amd64/32 | |
parent | 98464ad1b65066880bc892289239bafd39fe470b (diff) |
kernel/amd64: SSE support
Diffstat (limited to 'src/kernel/arch/amd64/32')
-rw-r--r-- | src/kernel/arch/amd64/32/boot.s | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/arch/amd64/32/boot.s b/src/kernel/arch/amd64/32/boot.s index 0621038..b0808d3 100644 --- a/src/kernel/arch/amd64/32/boot.s +++ b/src/kernel/arch/amd64/32/boot.s @@ -17,7 +17,7 @@ _start: jz panic_early mov %cr4, %eax - or $(1<<5), %eax // PAE + or $(1<<5 | 1<<9 | 1<<10), %eax // PAE | SSE | SSE mov %eax, %cr4 call pml4_identity_init @@ -30,7 +30,8 @@ _start: wrmsr mov %cr0, %eax - or $0x80000000, %eax + or $0x80000002, %eax // enable paging, coprocessor monitoring + and $(~4), %eax // disable coprocessor emulation mov %eax, %cr0 call gdt_init |