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
F169819131: D44235.id135484.diff
Wed, Sep 2, 4:10 PM
F169701969: D44235.diff
Wed, Sep 2, 8:14 AM
Unknown Object (File)
Tue, Sep 1, 12:12 PM
Unknown Object (File)
Tue, Sep 1, 10:53 AM
Unknown Object (File)
Tue, Sep 1, 8:27 AM
Unknown Object (File)
Tue, Sep 1, 5:26 AM
Unknown Object (File)
Fri, Aug 28, 5:18 AM
Unknown Object (File)
Wed, Aug 26, 9:53 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