use .altmacro for gas and hack the UNIMPLEMENTED macro
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 30 Jan 2010 03:11:39 +0000 (03:11 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 30 Jan 2010 03:11:39 +0000 (03:11 +0000)
svn path=/branches/ros-amd64-bringup/; revision=45335

reactos/include/reactos/asm.h

index 46e1e5c..a3da367 100644 (file)
@@ -52,6 +52,8 @@ ENDM
 .intel_syntax noprefix
 .code64
 
+.altmacro
+
 /* Hex numbers need to be in 0x1AB format */
 #define HEX(x) 0x##x
 
@@ -138,9 +140,11 @@ code = 1
 .macro .endprolog
 .endm
 
-.macro UNIMPLEMENTED2 file, line, func
+// Note the file1. This is a hack, as "\file" doesn't work with __FILE__, when
+// .altmacro is specified.
+.macro UNIMPLEMENTED2 file1, line, func
+
     jmp 3f
-    .equ expr, 12
 1:  .asciz "\func"
 2:  .asciz "\file"
 3: