linux: Introduce INTERNAL_VSYSCALL
commitc6c33339b45281590f9db138ba6c9d79acb1da27
authorEvan Green <evan@rivosinc.com>
Tue, 27 Feb 2024 22:56:38 +0000 (27 14:56 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 1 Mar 2024 15:14:56 +0000 (1 07:14 -0800)
tree0734d08f9d44f8b1c28ca687f5339e737f8e3693
parent426d0e1aa8f17426d13707594111df712d2b8911
linux: Introduce INTERNAL_VSYSCALL

Add an INTERNAL_VSYSCALL() macro that makes a vDSO call, falling back to
a regular syscall, but without setting errno. Instead, the return value
is plumbed straight out of the macro.

Signed-off-by: Evan Green <evan@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
sysdeps/unix/sysv/linux/sysdep-vdso.h