SYS.h (8269e7673cf033aba67dab8264fe719920c70f87) | SYS.h (f21777224411fee14b8aea6d8465bd6c2b318429) |
---|---|
1/* $NetBSD: SYS.h,v 1.8 2003/08/07 16:42:02 agc Exp $ */ 2 3/*- 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 * Copyright (c) 1990 The Regents of the University of California. 7 * All rights reserved. 8 * --- 31 unchanged lines hidden (view full) --- 40#define _SYSCALL(x) \ 41 mov ip, r7; \ 42 ldr r7, =SYS_ ## x; \ 43 swi 0; \ 44 mov r7, ip 45 46#define CERROR _C_LABEL(cerror) 47 | 1/* $NetBSD: SYS.h,v 1.8 2003/08/07 16:42:02 agc Exp $ */ 2 3/*- 4 * SPDX-License-Identifier: BSD-3-Clause 5 * 6 * Copyright (c) 1990 The Regents of the University of California. 7 * All rights reserved. 8 * --- 31 unchanged lines hidden (view full) --- 40#define _SYSCALL(x) \ 41 mov ip, r7; \ 42 ldr r7, =SYS_ ## x; \ 43 swi 0; \ 44 mov r7, ip 45 46#define CERROR _C_LABEL(cerror) 47 |
48#ifndef _SYSCALL_BODY |
|
48#define _SYSCALL_BODY(x) \ 49 _SYSCALL(x); \ 50 it cs; \ 51 bcs PIC_SYM(CERROR, PLT); \ 52 RET | 49#define _SYSCALL_BODY(x) \ 50 _SYSCALL(x); \ 51 it cs; \ 52 bcs PIC_SYM(CERROR, PLT); \ 53 RET |
54#endif |
|
53 54#define PSEUDO(x) \ 55 ENTRY(__CONCAT(__sys_, x)); \ 56 .weak _C_LABEL(__CONCAT(_,x)); \ 57 .set _C_LABEL(__CONCAT(_,x)),_C_LABEL(__CONCAT(__sys_,x)); \ 58 _SYSCALL_BODY(x) 59 60#define RSYSCALL(x) \ 61 ENTRY(__CONCAT(__sys_, x)); \ 62 .weak _C_LABEL(x); \ 63 .set _C_LABEL(x), _C_LABEL(__CONCAT(__sys_,x)); \ 64 .weak _C_LABEL(__CONCAT(_,x)); \ 65 .set _C_LABEL(__CONCAT(_,x)),_C_LABEL(__CONCAT(__sys_,x)); \ 66 _SYSCALL_BODY(x); \ 67 68 .globl CERROR | 55 56#define PSEUDO(x) \ 57 ENTRY(__CONCAT(__sys_, x)); \ 58 .weak _C_LABEL(__CONCAT(_,x)); \ 59 .set _C_LABEL(__CONCAT(_,x)),_C_LABEL(__CONCAT(__sys_,x)); \ 60 _SYSCALL_BODY(x) 61 62#define RSYSCALL(x) \ 63 ENTRY(__CONCAT(__sys_, x)); \ 64 .weak _C_LABEL(x); \ 65 .set _C_LABEL(x), _C_LABEL(__CONCAT(__sys_,x)); \ 66 .weak _C_LABEL(__CONCAT(_,x)); \ 67 .set _C_LABEL(__CONCAT(_,x)),_C_LABEL(__CONCAT(__sys_,x)); \ 68 _SYSCALL_BODY(x); \ 69 70 .globl CERROR |