Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Mar 2024 01:06:49 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 39a15d747007 - main - syscall(2): make i386 less of an outlier
Message-ID:  <202403070106.42716nQm006614@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202403070106.42716nQm006614>