PERFORCE change 122810 for review
Peter Wemm
peter at FreeBSD.org
Tue Jul 3 22:37:45 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=122810
Change 122810 by peter at peter_daintree on 2007/07/03 22:37:30
Oops. i386 uses both SYSCALL() and RSYSCALL(), unlike amd64 which just
uses RSYSCALL.
Affected files ...
.. //depot/projects/hammer/lib/libc/i386/SYS.h#5 edit
Differences ...
==== //depot/projects/hammer/lib/libc/i386/SYS.h#5 (text+ko) ====
@@ -36,15 +36,16 @@
#include <sys/syscall.h>
#include <machine/asm.h>
-#define RSYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \
+#define SYSCALL(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \
ENTRY(__CONCAT(__sys_,x)); \
.weak CNAME(x); \
.set CNAME(x),CNAME(__CONCAT(__sys_,x)); \
.weak CNAME(__CONCAT(_,x)); \
.set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
- mov __CONCAT($SYS_,x),%eax; KERNCALL; jb 2b; ret
+ mov __CONCAT($SYS_,x),%eax; KERNCALL; jb 2b
+#define RSYSCALL(x) SYSCALL(x); ret
-#define PSEUDO(x) 2: PIC_PROLOGUE; jmp mp PIC_PLT(HIDENAME(cerror)); \
+#define PSEUDO(x) 2: PIC_PROLOGUE; jmp PIC_PLT(HIDENAME(cerror)); \
ENTRY(__CONCAT(__sys_,x)); \
.weak CNAME(__CONCAT(_,x)); \
.set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
More information about the p4-projects
mailing list