Implement SSE instructions
This commit is contained in:
12
kernel/amd64/sse.S
Normal file
12
kernel/amd64/sse.S
Normal file
@@ -0,0 +1,12 @@
|
||||
.global sse_enable
|
||||
sse_enable:
|
||||
movq %cr0, %rax
|
||||
andq $~0x4, %rax
|
||||
orq $0x2, %rax
|
||||
movq %rax, %cr0
|
||||
|
||||
movq %cr4, %rax
|
||||
orq $(1 << 9) | (1 << 10), %rax
|
||||
movq %rax, %cr4
|
||||
|
||||
ret
|
||||
Reference in New Issue
Block a user