]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/freebsd/os-syscall.c
bsd-user/freebsd/os-syscall.c: Tracing and error boilerplate
authorWarner Losh <imp@bsdimp.com>
Mon, 31 Jan 2022 20:55:12 +0000 (13:55 -0700)
committerWarner Losh <imp@bsdimp.com>
Sat, 11 Jun 2022 04:00:48 +0000 (22:00 -0600)
commitdb69788703c5fdc590c96815c0eeeebc6a32d3e7
tree535efc579f25e14f1e19cf582c240b850e0b8cd0
parent883808d84895804a3a98e211001c3edf42355b66
bsd-user/freebsd/os-syscall.c: Tracing and error boilerplate

Add in the tracing and this system call not implemented boilerplate. Do
this by moving the guts of do_freebsd_syscall to freebsd_syscall. Put
the tracing in the wrapper function. Since freebsd_syscall is a
singleton static function, it will almost certainly be inlined. Fix
comments that referred to do_syscall since that was renamed some tie
ago.

Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
bsd-user/freebsd/os-syscall.c