HomeFreeBSD

{amd64,i386}/SYS.h: add _SYSCALL and _SYSCALL_BODY

Description

{amd64,i386}/SYS.h: add _SYSCALL and _SYSCALL_BODY

Add a _SYSCALL(name) which calls the SYS_name syscall. Use it to add a
_SYSCALL_BODY() macro which invokes the syscall and calls cerror as
required. Use the latter to implement PSEUDO() and RSYSCALL().

Reviewed by: imp, markj
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D43059

Details

Provenance
brooksAuthored on Dec 18 2023, 10:28 PM
Reviewer
imp
Differential Revision
D43059: {amd64,i386}/SYS.h: add _SYSCALL and _SYSCALL_BODY
Parents
rG300bbb3a43e3: riscv/SYS.h: implement _SYSCALL_BODY() macro
Branches
Unknown
Tags
Unknown