SYS.h (8269e7673cf033aba67dab8264fe719920c70f87) | SYS.h (f21777224411fee14b8aea6d8465bd6c2b318429) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1990 The Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * William Jolitz. --- 26 unchanged lines hidden (view full) --- 35#include <sys/syscall.h> 36#include <machine/asm.h> 37 38#define _SYSCALL(name) \ 39 mov $SYS_##name, %eax; \ 40 movq %rcx, %r10; \ 41 syscall 42 | 1/*- 2 * SPDX-License-Identifier: BSD-3-Clause 3 * 4 * Copyright (c) 1990 The Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * William Jolitz. --- 26 unchanged lines hidden (view full) --- 35#include <sys/syscall.h> 36#include <machine/asm.h> 37 38#define _SYSCALL(name) \ 39 mov $SYS_##name, %eax; \ 40 movq %rcx, %r10; \ 41 syscall 42 |
43#ifndef _SYSCALL_BODY |
|
43#define _SYSCALL_BODY(name) \ 44 _SYSCALL(name); \ 45 jb HIDENAME(cerror); \ 46 ret | 44#define _SYSCALL_BODY(name) \ 45 _SYSCALL(name); \ 46 jb HIDENAME(cerror); \ 47 ret |
48#endif |
|
47 48#define RSYSCALL(name) ENTRY(__sys_##name); \ 49 WEAK_REFERENCE(__sys_##name, name); \ 50 WEAK_REFERENCE(__sys_##name, _##name); \ 51 _SYSCALL_BODY(name); \ 52 END(__sys_##name) 53 54#define PSEUDO(name) ENTRY(__sys_##name); \ 55 WEAK_REFERENCE(__sys_##name, _##name); \ 56 _SYSCALL_BODY(name); \ 57 END(__sys_##name) | 49 50#define RSYSCALL(name) ENTRY(__sys_##name); \ 51 WEAK_REFERENCE(__sys_##name, name); \ 52 WEAK_REFERENCE(__sys_##name, _##name); \ 53 _SYSCALL_BODY(name); \ 54 END(__sys_##name) 55 56#define PSEUDO(name) ENTRY(__sys_##name); \ 57 WEAK_REFERENCE(__sys_##name, _##name); \ 58 _SYSCALL_BODY(name); \ 59 END(__sys_##name) |