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.

--- 25 unchanged lines hidden (view full) ---

34
35#include <sys/syscall.h>
36#include <machine/asm.h>
37
38#define _SYSCALL(name) \
39 mov $SYS_##name, %eax; \
40 int $0x80
41
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.

--- 25 unchanged lines hidden (view full) ---

34
35#include <sys/syscall.h>
36#include <machine/asm.h>
37
38#define _SYSCALL(name) \
39 mov $SYS_##name, %eax; \
40 int $0x80
41
42#ifndef _SYSCALL_BODY
42#define _SYSCALL_BODY(name) \
43 _SYSCALL(name); \
44 jb HIDENAME(cerror); \
45 ret
43#define _SYSCALL_BODY(name) \
44 _SYSCALL(name); \
45 jb HIDENAME(cerror); \
46 ret
47#endif
46
47#define RSYSCALL(name) ENTRY(__sys_##name); \
48 WEAK_REFERENCE(__sys_##name, name); \
49 WEAK_REFERENCE(__sys_##name, _##name); \
50 _SYSCALL_BODY(name); \
51 END(__sys_##name)
52
53#define PSEUDO(name) ENTRY(__sys_##name); \
54 WEAK_REFERENCE(__sys_##name, _##name); \
55 _SYSCALL_BODY(name); \
56 END(__sys_##name)
48
49#define RSYSCALL(name) ENTRY(__sys_##name); \
50 WEAK_REFERENCE(__sys_##name, name); \
51 WEAK_REFERENCE(__sys_##name, _##name); \
52 _SYSCALL_BODY(name); \
53 END(__sys_##name)
54
55#define PSEUDO(name) ENTRY(__sys_##name); \
56 WEAK_REFERENCE(__sys_##name, _##name); \
57 _SYSCALL_BODY(name); \
58 END(__sys_##name)