summaryrefslogtreecommitdiff
path: root/i386/include
diff options
context:
space:
mode:
authorAlfred M. Szmidt <ams@gnu.org>2005-06-02 20:02:44 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:15:27 +0200
commit62bf63d99312f4d8ea2c148521dcff6c346741ad (patch)
tree3bf24d1a4e6e9e896bfd4465bb4871283a8b46cc /i386/include
parent8a6f23293ca4540950eb523d9ff9727ca92241cd (diff)
2005-05-24 Alfred M. Szmidt <ams@gnu.org>
* i386/include/mach/i386/asm.h (END): New macro. * i386/include/mach/i386/syscall_sw.h (kernel_trap): Call END.
Diffstat (limited to 'i386/include')
-rw-r--r--i386/include/mach/i386/asm.h3
-rw-r--r--i386/include/mach/i386/syscall_sw.h6
2 files changed, 6 insertions, 3 deletions
diff --git a/i386/include/mach/i386/asm.h b/i386/include/mach/i386/asm.h
index b4aaca5..3e3f48b 100644
--- a/i386/include/mach/i386/asm.h
+++ b/i386/include/mach/i386/asm.h
@@ -100,7 +100,7 @@
.p2align TEXT_ALIGN; LEXT(x) LEXT(y)
#define ASENTRY(x) .globl x; .p2align TEXT_ALIGN; gLB(x) ; \
pushl %ebp; movl %esp, %ebp; MCOUNT; popl %ebp;
-
+#define END(x) .size x,.-x
#else /* GPROF */
#define MCOUNT
@@ -108,6 +108,7 @@
#define ENTRY2(x,y) .globl EXT(x); .globl EXT(y); \
.p2align TEXT_ALIGN; LEXT(x) LEXT(y)
#define ASENTRY(x) .globl x; .p2align TEXT_ALIGN; gLB(x)
+#define END(x) .size x,.-x
#endif /* GPROF */
#define Entry(x) .globl EXT(x); .p2align TEXT_ALIGN; LEXT(x)
diff --git a/i386/include/mach/i386/syscall_sw.h b/i386/include/mach/i386/syscall_sw.h
index 6b937d9..86f6ff2 100644
--- a/i386/include/mach/i386/syscall_sw.h
+++ b/i386/include/mach/i386/syscall_sw.h
@@ -35,13 +35,15 @@ ENTRY(trap_name) \
movl $ trap_number,%eax; \
SVC; \
jb LCL(cerror); \
- ret;
+ ret; \
+END(trap_name)
#else
#define kernel_trap(trap_name,trap_number,number_args) \
ENTRY(trap_name) \
movl $ trap_number,%eax; \
SVC; \
- ret;
+ ret; \
+END(trap_name)
#endif
#endif /* _MACH_I386_SYSCALL_SW_H_ */