From fa1a6cf266f262f48ecbe7fcaf6c37eb1ef4b02b Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Wed, 6 Dec 2023 06:15:34 +0000 Subject: Move CALLSYS_NOERROR macro from 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 --- libexec/ld.so/alpha/SYS.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libexec/ld.so/alpha') 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: \ -- cgit v1.2.3