Linux 6.10-rc4
[linux-2.6-block.git] / arch / sparc / kernel / systbls_64.S
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
bc5a2e64 2/* systbls.S: System call entry point tables for OS compatibility.
1da177e4
LT
3 * The native Linux system call table lives here also.
4 *
bc5a2e64 5 * Copyright (C) 1995, 1996, 2007 David S. Miller (davem@davemloft.net)
1da177e4
LT
6 * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
7 *
8 * Based upon preliminary work which is:
9 *
10 * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
11 */
12
5ad4e94b 13#define __SYSCALL(nr, entry) .word entry
1da177e4
LT
14 .text
15 .align 4
1da177e4 16#ifdef CONFIG_COMPAT
1da177e4
LT
17 .globl sys_call_table32
18sys_call_table32:
5ad4e94b
MY
19#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
20#include <asm/syscall_table_32.h> /* Compat syscalls */
21#undef __SYSCALL_WITH_COMPAT
1da177e4
LT
22#endif /* CONFIG_COMPAT */
23
1da177e4
LT
24 .align 4
25 .globl sys_call_table64, sys_call_table
26sys_call_table64:
27sys_call_table:
5ad4e94b 28#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
36800330 29#include <asm/syscall_table_64.h> /* 64-bit native syscalls */