diff options
author | bde <bde@FreeBSD.org> | 1997-04-19 17:05:30 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-04-19 17:05:30 +0000 |
commit | e5e3bb8d08310c479b2393b930e86293cfd3adaa (patch) | |
tree | 3b1acfab4911c89153cfa74535a5d186a1becfd4 /lib/libc | |
parent | 4d078cb8d9451bf36499705dbca2d944683229de (diff) | |
download | FreeBSD-src-e5e3bb8d08310c479b2393b930e86293cfd3adaa.zip FreeBSD-src-e5e3bb8d08310c479b2393b930e86293cfd3adaa.tar.gz |
Fixed long lines.
Removed unused macros CALL() and ASMSTR.
Reviewed by: jdp
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/amd64/SYS.h | 17 | ||||
-rw-r--r-- | lib/libc/i386/SYS.h | 17 |
2 files changed, 18 insertions, 16 deletions
diff --git a/lib/libc/amd64/SYS.h b/lib/libc/amd64/SYS.h index 2f51e63..593b2ed 100644 --- a/lib/libc/amd64/SYS.h +++ b/lib/libc/amd64/SYS.h @@ -35,17 +35,17 @@ * * from: @(#)SYS.h 5.5 (Berkeley) 5/7/91 * - * $Id$ + * $Id: SYS.h,v 1.10 1997/02/22 14:58:30 peter Exp $ */ #include <sys/syscall.h> #include "DEFS.h" -#define SYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); ENTRY(x); lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b +#define SYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \ + ENTRY(x); lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b #define RSYSCALL(x) SYSCALL(x); ret #define PSEUDO(x,y) ENTRY(x); lea __CONCAT(SYS_,y), %eax; KERNCALL; ret -#define CALL(x,y) call CNAME(y); addl $4*x,%esp /* gas messes up offset -- although we don't currently need it, do for BCS */ #define LCALL(x,y) .byte 0x9a ; .long y; .word x @@ -58,14 +58,17 @@ * RSYSCALL(). This avoids the need to #ifdef _THREAD_SAFE everywhere * that the renamed function needs to be called. */ -#ifdef _THREAD_SAFE /* in case */ +#ifdef _THREAD_SAFE /* * For the thread_safe versions, we prepend _thread_sys_ to the function * name so that the 'C' wrapper can go around the real name. */ -#define PSYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); ENTRY(__CONCAT(_thread_sys_,x)); lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b +#define PSYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \ + ENTRY(__CONCAT(_thread_sys_,x)); \ + lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b #define PRSYSCALL(x) PSYSCALL(x); ret -#define PPSEUDO(x,y) ENTRY(__CONCAT(_thread_sys_,x)); lea __CONCAT(SYS_,y), %eax; KERNCALL; ret +#define PPSEUDO(x,y) ENTRY(__CONCAT(_thread_sys_,x)); \ + lea __CONCAT(SYS_,y), %eax; KERNCALL; ret #else /* * The non-threaded library defaults to traditional syscalls where @@ -81,5 +84,3 @@ #else #define KERNCALL LCALL(7,0) /* The old way */ #endif - -#define ASMSTR .asciz diff --git a/lib/libc/i386/SYS.h b/lib/libc/i386/SYS.h index 2f51e63..593b2ed 100644 --- a/lib/libc/i386/SYS.h +++ b/lib/libc/i386/SYS.h @@ -35,17 +35,17 @@ * * from: @(#)SYS.h 5.5 (Berkeley) 5/7/91 * - * $Id$ + * $Id: SYS.h,v 1.10 1997/02/22 14:58:30 peter Exp $ */ #include <sys/syscall.h> #include "DEFS.h" -#define SYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); ENTRY(x); lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b +#define SYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \ + ENTRY(x); lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b #define RSYSCALL(x) SYSCALL(x); ret #define PSEUDO(x,y) ENTRY(x); lea __CONCAT(SYS_,y), %eax; KERNCALL; ret -#define CALL(x,y) call CNAME(y); addl $4*x,%esp /* gas messes up offset -- although we don't currently need it, do for BCS */ #define LCALL(x,y) .byte 0x9a ; .long y; .word x @@ -58,14 +58,17 @@ * RSYSCALL(). This avoids the need to #ifdef _THREAD_SAFE everywhere * that the renamed function needs to be called. */ -#ifdef _THREAD_SAFE /* in case */ +#ifdef _THREAD_SAFE /* * For the thread_safe versions, we prepend _thread_sys_ to the function * name so that the 'C' wrapper can go around the real name. */ -#define PSYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); ENTRY(__CONCAT(_thread_sys_,x)); lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b +#define PSYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \ + ENTRY(__CONCAT(_thread_sys_,x)); \ + lea __CONCAT(SYS_,x),%eax; KERNCALL; jb 2b #define PRSYSCALL(x) PSYSCALL(x); ret -#define PPSEUDO(x,y) ENTRY(__CONCAT(_thread_sys_,x)); lea __CONCAT(SYS_,y), %eax; KERNCALL; ret +#define PPSEUDO(x,y) ENTRY(__CONCAT(_thread_sys_,x)); \ + lea __CONCAT(SYS_,y), %eax; KERNCALL; ret #else /* * The non-threaded library defaults to traditional syscalls where @@ -81,5 +84,3 @@ #else #define KERNCALL LCALL(7,0) /* The old way */ #endif - -#define ASMSTR .asciz |