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)
Tue, Aug 11, 1:28 AM
Unknown Object (File)
Sat, Aug 8, 7:56 PM
Unknown Object (File)
Mon, Aug 3, 8:27 PM
Unknown Object (File)
Mon, Aug 3, 9:09 AM
Unknown Object (File)
Sun, Aug 2, 3:07 AM
Unknown Object (File)
Fri, Jul 31, 12:24 PM
Unknown Object (File)
Jul 3 2026, 8:49 AM
Unknown Object (File)
Jun 30 2026, 4:54 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