diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | i386/include/mach/i386/asm.h | 3 | ||||
-rw-r--r-- | i386/include/mach/i386/syscall_sw.h | 6 |
3 files changed, 12 insertions, 3 deletions
@@ -1,3 +1,9 @@ +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. + 2005-05-28 Alfred M. Szmidt <ams@gnu.org> * linux/src/drivers/scsi/u14-34f.c (ihdlr): Silence gcc 4.x 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_ */ |