From f2eb3a78c7b69c4b8e118d91327cc5c1016481fc Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 28 Aug 2022 22:23:05 +0200 Subject: kernel/amd64: SSE support --- src/kernel/arch/amd64/32/boot.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/kernel/arch/amd64/32') 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 -- cgit v1.2.3