grml...
[seabios.git] / src / entryfuncs.S
index 65218e3bb8b402c4f88f6e75eea19b64da05d150..afc5e611944afb4ad9d3eb01800acbe59635b424 100644 (file)
         xorw %ax, %ax
         movw %ax, %ss
         movl $ BUILD_STACK_ADDR , %esp
-        pushl $ \cfunc
+        movl $ \cfunc , %edx
         jmp transition32
         .endm
 
         .section .text.asm.\func
         .global \func
         .endm
+
+        // Declare an exported function
+        .macro EXPORTFUNC func
+        .section .text.asm.export.\func
+        .global \func
+        .endm