Page MenuHomeFreeBSD

syscall(2): make i386 less of an outlier
ClosedPublic

Authored by brooks on Mar 5 2024, 9:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 25, 10:54 PM
Unknown Object (File)
Fri, Sep 25, 1:16 PM
Unknown Object (File)
Wed, Sep 23, 1:42 AM
Unknown Object (File)
Fri, Sep 18, 10:49 PM
Unknown Object (File)
Sat, Sep 12, 12:27 AM
Unknown Object (File)
Thu, Sep 10, 6:52 PM
Unknown Object (File)
Thu, Sep 10, 12:17 AM
Unknown Object (File)
Mon, Sep 7, 8:47 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable