summaryrefslogtreecommitdiff
path: root/i386/i386/cpu_number.S
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386/cpu_number.S')
-rw-r--r--i386/i386/cpu_number.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/i386/i386/cpu_number.S b/i386/i386/cpu_number.S
new file mode 100644
index 00000000..95036b8b
--- /dev/null
+++ b/i386/i386/cpu_number.S
@@ -0,0 +1,4 @@
+.macro CPU_NUMBER reg
+ call cpu_number
+ movl %eax, \reg
+.endm