summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-03-23 00:24:17 -0700
committerOri Bernstein <ori@eigenstate.org>2018-03-24 14:17:44 -0700
commit60964cf8e347043da18a3f79217e5f5fa3a8bb5e (patch)
tree68e12a6e42fc5223d2e618b52b434b0c4c57d839 /mbld
parenta94f75ac8f6a6365182191a55fad1e5723411457 (diff)
downloadmc-60964cf8e347043da18a3f79217e5f5fa3a8bb5e.tar.gz
Fix the cpufeatures... er... features on plan 9.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/cpufeatures+plan9-x64.s9
-rw-r--r--mbld/cpufeatures+posixy-x64.s4
2 files changed, 6 insertions, 7 deletions
diff --git a/mbld/cpufeatures+plan9-x64.s b/mbld/cpufeatures+plan9-x64.s
index a67e0c9..645d01a 100644
--- a/mbld/cpufeatures+plan9-x64.s
+++ b/mbld/cpufeatures+plan9-x64.s
@@ -1,9 +1,8 @@
TEXT bld$cpufeatures+0(SB),$0
MOVL $0x1,AX
CPUID
- MOVL CX,AX
- ROLQ $32, AX
- SHRQ $32, DX
- ORQ DX, AX
+ MOVL CX, AX
+ MOVL DX, DX
+ ROLQ $32, DX
+ ORQ DX, AX
RET
-
diff --git a/mbld/cpufeatures+posixy-x64.s b/mbld/cpufeatures+posixy-x64.s
index 8202ca1..889c6f1 100644
--- a/mbld/cpufeatures+posixy-x64.s
+++ b/mbld/cpufeatures+posixy-x64.s
@@ -1,7 +1,7 @@
.globl bld$cpufeatures
-.globl bld$_cpufeatures
+.globl _bld$cpufeatures
bld$cpufeatures:
-bld$_cpufeatures:
+_bld$cpufeatures:
mov $0x1, %eax
cpuid
mov %ecx, %eax