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
F139021863: D44235.id135425.diff
Sat, Dec 6, 3:44 PM
Unknown Object (File)
Sun, Nov 30, 9:52 PM
Unknown Object (File)
Fri, Nov 28, 3:38 PM
Unknown Object (File)
Mon, Nov 24, 6:50 AM
Unknown Object (File)
Sat, Nov 22, 6:07 PM
Unknown Object (File)
Sat, Nov 15, 3:05 AM
Unknown Object (File)
Thu, Nov 13, 4:01 PM
Unknown Object (File)
Thu, Nov 13, 4:01 PM
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