diff options
Diffstat (limited to 'i386/include')
-rw-r--r-- | i386/include/mach/i386/asm.h | 3 | ||||
-rw-r--r-- | i386/include/mach/i386/syscall_sw.h | 6 |
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_ */ |