37c37
< * $FreeBSD: head/lib/libc/amd64/SYS.h 114306 2003-04-30 18:06:14Z peter $
---
> * $FreeBSD: head/lib/libc/amd64/SYS.h 115279 2003-05-24 17:35:23Z peter $
43c43,45
< #define SYSCALL(x) 2: jmp PIC_PLT(HIDENAME(cerror)); \
---
> #ifdef PIC
> #define SYSCALL(x) 2: movq PIC_GOT(HIDENAME(cerror)),%rcx; \
> jmp *%rcx; \
49a52,60
> #else
> #define SYSCALL(x) 2: jmp 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),%rax; KERNCALL; jb 2b
> #endif
< * $FreeBSD: head/lib/libc/amd64/SYS.h 114306 2003-04-30 18:06:14Z peter $
---
> * $FreeBSD: head/lib/libc/amd64/SYS.h 115279 2003-05-24 17:35:23Z peter $
43c43,45
< #define SYSCALL(x) 2: jmp PIC_PLT(HIDENAME(cerror)); \
---
> #ifdef PIC
> #define SYSCALL(x) 2: movq PIC_GOT(HIDENAME(cerror)),%rcx; \
> jmp *%rcx; \
49a52,60
> #else
> #define SYSCALL(x) 2: jmp 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),%rax; KERNCALL; jb 2b
> #endif