Macros for symbols used in both ASM and C

-The macros take care of prepending the leading underscore when
 necessary.
This commit is contained in:
Arun Thomas
2010-08-17 16:44:07 +00:00
parent c8cfcab5db
commit 9a21d1a2fd
209 changed files with 1511 additions and 1863 deletions
+3 -6
View File
@@ -1,15 +1,12 @@
.text
#include <machine/asm.h>
#define LD_ST_REG(reg) ;\
.globl _ld_##reg ;\
.globl _st_##reg ;\
;\
_ld_##reg: ;\
ENTRY(ld_##reg) ;\
mov 4(%esp), %eax ;\
mov %eax, %reg ;\
ret ;\
;\
_st_##reg: ;\
ENTRY(st_##reg) ;\
mov %reg, %eax ;\
ret