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
F151942247: D44235.id135484.diff
Sat, Apr 11, 4:13 PM
F151941406: D44235.id135425.diff
Sat, Apr 11, 4:05 PM
Unknown Object (File)
Sat, Apr 11, 1:49 AM
Unknown Object (File)
Tue, Apr 7, 4:13 AM
Unknown Object (File)
Mar 7 2026, 10:06 AM
Unknown Object (File)
Mar 2 2026, 4:49 AM
Unknown Object (File)
Feb 28 2026, 3:04 AM
Unknown Object (File)
Feb 26 2026, 8:24 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