git: 39a15d747007 - main - syscall(2): make i386 less of an outlier
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Mar 2024 01:06:49 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=39a15d747007b934cc515d6151595055d8262828
commit 39a15d747007b934cc515d6151595055d8262828
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-03-07 00:59:07 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-03-07 00:59:07 +0000
syscall(2): make i386 less of an outlier
Unlike other architectures, i386 only defined syscall() and not
_syscall() or __sys_syscall(). The syscall() function then invoked the
desired system call directly rather than invoking syscall(2). Keep the
latter as it's marginally more efficent, but also create the
conventional _syscall() and __sys_syscall() stubs.
This avoids the need to special case syscall(2) in the symbol list
generation in libsys.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44235
---
lib/libsys/i386/syscall.S | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/libsys/i386/syscall.S b/lib/libsys/i386/syscall.S
index 9eaf193c1d7a..bed7156e28ac 100644
--- a/lib/libsys/i386/syscall.S
+++ b/lib/libsys/i386/syscall.S
@@ -44,4 +44,6 @@ ENTRY(syscall)
ret
END(syscall)
+PSEUDO(syscall)
+
.section .note.GNU-stack,"",%progbits