diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2023-12-06 06:15:34 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2023-12-06 06:15:34 +0000 |
commit | fa1a6cf266f262f48ecbe7fcaf6c37eb1ef4b02b (patch) | |
tree | ebe4e9eb49bf692e526854c121d4b483c42f241d /libexec/ld.so/alpha/SYS.h | |
parent | 9aac7ee020256c63ca5bfb92048d2a420565335b (diff) |
Move CALLSYS_NOERROR macro from <machine/asm.h> to libc, and expand it for
non-libc users. This is a two-liner macro anyway, and this will make
deraadt@'s future changes in this area easier to make. NFC
Diffstat (limited to 'libexec/ld.so/alpha/SYS.h')
-rw-r--r-- | libexec/ld.so/alpha/SYS.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/ld.so/alpha/SYS.h b/libexec/ld.so/alpha/SYS.h index 004fe5f9c73..4472afa8a11 100644 --- a/libexec/ld.so/alpha/SYS.h +++ b/libexec/ld.so/alpha/SYS.h @@ -1,4 +1,4 @@ -/* $OpenBSD: SYS.h,v 1.2 2019/02/03 02:20:36 guenther Exp $ */ +/* $OpenBSD: SYS.h,v 1.3 2023/12/06 06:15:33 miod Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -63,7 +63,8 @@ #define DL_SYSCALL(c) \ LEAF_NOPROFILE(_dl_##c, irrelevant); \ - CALLSYS_NOERROR(c); \ + ldiq v0, SYS_##c; \ + call_pal PAL_OSF1_callsys; \ beq a3, 1f; \ subq zero, v0, v0; /* return -errno */ \ 1: \ |