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)
Sat, Mar 7, 10:06 AM
Unknown Object (File)
Mon, Mar 2, 4:49 AM
Unknown Object (File)
Sat, Feb 28, 3:04 AM
Unknown Object (File)
Thu, Feb 26, 8:24 AM
Unknown Object (File)
Wed, Feb 25, 2:15 PM
Unknown Object (File)
Sun, Feb 22, 2:09 PM
Unknown Object (File)
Feb 15 2026, 7:31 AM
Unknown Object (File)
Feb 8 2026, 2:17 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