aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2023-12-12 22:52:41 +0000
committerBrooks Davis <brooks@FreeBSD.org>2023-12-12 22:52:41 +0000
commit9aaf4e3be61fc20a84347b7c2c524256a4b93a43 (patch)
tree66a2615f959d1efd3d3c0bf4e18ad5fa514050c6
parent0c511bafdd5b309505c13c8dc7c6816686d1e103 (diff)
downloadsrc-9aaf4e3be61fc20a84347b7c2c524256a4b93a43.tar.gz
src-9aaf4e3be61fc20a84347b7c2c524256a4b93a43.zip
libc/*/SYS.h: remove SYCALL macro
This has not been a univerally available interface since it was removed from amd64 by commit efbef97de9805dec95db09953426f0b21bb2964f in 2004. I removed the last consumers in 2016 when I replaced pipe(2) with pipe2(2) in commit b60998c6331e2be21f1fc29fa6c82d94a1f72ef0. Reviewed by: imp, jhibbits Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D42996
-rw-r--r--lib/libc/aarch64/SYS.h8
-rw-r--r--lib/libc/arm/SYS.h3
-rw-r--r--lib/libc/i386/SYS.h7
-rw-r--r--lib/libc/powerpc/SYS.h10
-rw-r--r--lib/libc/powerpc64/SYS.h18
-rw-r--r--lib/libc/riscv/SYS.h8
6 files changed, 3 insertions, 51 deletions
diff --git a/lib/libc/aarch64/SYS.h b/lib/libc/aarch64/SYS.h
index 059ecd469650..af7f0200a0c7 100644
--- a/lib/libc/aarch64/SYS.h
+++ b/lib/libc/aarch64/SYS.h
@@ -34,14 +34,6 @@
mov x8, SYS_ ## name; \
svc 0
-#define SYSCALL(name) \
-ENTRY(__sys_##name); \
- WEAK_REFERENCE(__sys_##name, name); \
- WEAK_REFERENCE(__sys_##name, _##name); \
- _SYSCALL(name); \
- ret; \
-END(__sys_##name)
-
/*
* Conditional jumps can only go up to one megabyte in either
* direction, and cerror can be located anywhere, so we have
diff --git a/lib/libc/arm/SYS.h b/lib/libc/arm/SYS.h
index 9f4750a16b9f..9ac2d90104b4 100644
--- a/lib/libc/arm/SYS.h
+++ b/lib/libc/arm/SYS.h
@@ -59,9 +59,6 @@
it cs; \
bcs PIC_SYM(CERROR, PLT)
-#define SYSCALL(x) \
- _SYSCALL(x)
-
#define PSEUDO(x) \
ENTRY(__CONCAT(__sys_, x)); \
.weak _C_LABEL(__CONCAT(_,x)); \
diff --git a/lib/libc/i386/SYS.h b/lib/libc/i386/SYS.h
index 9e8c645280bf..6ef21fb794a6 100644
--- a/lib/libc/i386/SYS.h
+++ b/lib/libc/i386/SYS.h
@@ -35,13 +35,12 @@
#include <sys/syscall.h>
#include <machine/asm.h>
-#define SYSCALL(name) ENTRY(__sys_##name); \
+#define RSYSCALL(name) ENTRY(__sys_##name); \
WEAK_REFERENCE(__sys_##name, name); \
WEAK_REFERENCE(__sys_##name, _##name); \
mov $SYS_##name,%eax; KERNCALL; \
- jb HIDENAME(cerror)
-
-#define RSYSCALL(name) SYSCALL(name); ret; END(__sys_##name)
+ jb HIDENAME(cerror); \
+ ret; END(__sys_##name)
#define PSEUDO(name) ENTRY(__sys_##name); \
WEAK_REFERENCE(__sys_##name, _##name); \
diff --git a/lib/libc/powerpc/SYS.h b/lib/libc/powerpc/SYS.h
index 7fdf7c734310..8c47a65735f5 100644
--- a/lib/libc/powerpc/SYS.h
+++ b/lib/libc/powerpc/SYS.h
@@ -40,16 +40,6 @@
li 0,(SYS_##name); \
sc
-#define SYSCALL(name) \
- .text; \
- .align 2; \
-2: b CNAME(HIDENAME(cerror)); \
-ENTRY(__sys_##name); \
- WEAK_REFERENCE(__sys_##name, name); \
- WEAK_REFERENCE(__sys_##name, _##name); \
- _SYSCALL(name); \
- bso 2b
-
#define PSEUDO(name) \
.text; \
.align 2; \
diff --git a/lib/libc/powerpc64/SYS.h b/lib/libc/powerpc64/SYS.h
index c364090a5487..dccd08b63541 100644
--- a/lib/libc/powerpc64/SYS.h
+++ b/lib/libc/powerpc64/SYS.h
@@ -40,24 +40,6 @@
li 0,(SYS_##name); \
sc
-#define SYSCALL(name) \
- .text; \
- .align 2; \
-2: mflr %r0; \
- std %r0,16(%r1); \
- stdu %r1,-48(%r1); \
- bl CNAME(HIDENAME(cerror)); \
- nop; \
- addi %r1,%r1,48; \
- ld %r0,16(%r1); \
- mtlr %r0; \
- blr; \
-ENTRY(__sys_##name); \
- WEAK_REFERENCE(__sys_##name, name); \
- WEAK_REFERENCE(__sys_##name, _##name); \
- _SYSCALL(name); \
- bso 2b
-
#define PSEUDO(name) \
.text; \
.align 2; \
diff --git a/lib/libc/riscv/SYS.h b/lib/libc/riscv/SYS.h
index 47f92467c843..1e3e67834494 100644
--- a/lib/libc/riscv/SYS.h
+++ b/lib/libc/riscv/SYS.h
@@ -40,14 +40,6 @@
li t0, SYS_ ## name; \
ecall
-#define SYSCALL(name) \
-ENTRY(__sys_##name); \
- WEAK_REFERENCE(__sys_##name, name); \
- WEAK_REFERENCE(__sys_##name, _##name); \
- _SYSCALL(name); \
- ret; \
-END(__sys_##name)
-
#define PSEUDO(name) \
ENTRY(__sys_##name); \
WEAK_REFERENCE(__sys_##name, _##name); \