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
F161056472: D44235.id135484.diff
Tue, Jun 30, 4:54 AM
F161004389: D44235.diff
Mon, Jun 29, 6:50 PM
Unknown Object (File)
Sun, Jun 28, 4:25 PM
Unknown Object (File)
Wed, Jun 24, 5:00 AM
Unknown Object (File)
Sun, Jun 21, 11:58 PM
Unknown Object (File)
Sun, Jun 21, 1:24 AM
Unknown Object (File)
Mon, Jun 15, 1:24 AM
Unknown Object (File)
Sun, Jun 14, 12:13 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