summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/SYS.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2008-11-02 01:28:47 +0000
committerpeter <peter@FreeBSD.org>2008-11-02 01:28:47 +0000
commit3375b8347bf4a4a5365a390af7fa3c2adb0ad6cd (patch)
tree3dffbf64ba2a3402b9a89f84ff5f5036d0a9ce91 /lib/libc/i386/SYS.h
parentaa63008f13d7a07b62a85c25814374cb77dc7f84 (diff)
downloadFreeBSD-src-3375b8347bf4a4a5365a390af7fa3c2adb0ad6cd.zip
FreeBSD-src-3375b8347bf4a4a5365a390af7fa3c2adb0ad6cd.tar.gz
Add missing END() macros, as per rev 184547 for amd64. The lack of these
is mostly harmless, but it does upset some of valgrind's functionality.
Diffstat (limited to 'lib/libc/i386/SYS.h')
-rw-r--r--lib/libc/i386/SYS.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/i386/SYS.h b/lib/libc/i386/SYS.h
index 2f8a293..a4a147a 100644
--- a/lib/libc/i386/SYS.h
+++ b/lib/libc/i386/SYS.h
@@ -44,13 +44,14 @@
.set CNAME(__CONCAT(_,x)),CNAME(__CONCAT(__sys_,x)); \
mov __CONCAT($SYS_,x),%eax; KERNCALL; jb 2b
-#define RSYSCALL(x) SYSCALL(x); ret
+#define RSYSCALL(x) SYSCALL(x); ret; END(__CONCAT(__sys_,x))
#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)); \
- mov __CONCAT($SYS_,x),%eax; KERNCALL; jb 2b; ret
+ mov __CONCAT($SYS_,x),%eax; KERNCALL; jb 2b; ret; \
+ END(__CONCAT(__sys_,x))
/* gas messes up offset -- although we don't currently need it, do for BCS */
#define LCALL(x,y) .byte 0x9a ; .long y; .word x
OpenPOWER on IntegriCloud