summaryrefslogtreecommitdiff
path: root/mbld/cpufeatures+plan9-x64.s
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-03-23 00:24:17 -0700
committerOri Bernstein <ori@eigenstate.org>2018-03-23 10:37:04 -0700
commita94f75ac8f6a6365182191a55fad1e5723411457 (patch)
tree89abac491adf7bb2045a52530f609e8a07516fdc /mbld/cpufeatures+plan9-x64.s
parent65c3b339b547b49d1c1d11c56d86ca81f756e9be (diff)
downloadmc-a94f75ac8f6a6365182191a55fad1e5723411457.tar.gz
Fix the cpufeatures... er... features on plan 9.
Diffstat (limited to 'mbld/cpufeatures+plan9-x64.s')
-rw-r--r--mbld/cpufeatures+plan9-x64.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/mbld/cpufeatures+plan9-x64.s b/mbld/cpufeatures+plan9-x64.s
new file mode 100644
index 0000000..a67e0c9
--- /dev/null
+++ b/mbld/cpufeatures+plan9-x64.s
@@ -0,0 +1,9 @@
+TEXT bld$cpufeatures+0(SB),$0
+ MOVL $0x1,AX
+ CPUID
+ MOVL CX,AX
+ ROLQ $32, AX
+ SHRQ $32, DX
+ ORQ DX, AX
+ RET
+