1/* SPDX-License-Identifier: GPL-2.0 */
2/* systbls.S: System call entry point tables for OS compatibility.
3 *            The native Linux system call table lives here also.
4 *
5 * Copyright (C) 1995, 1996, 2007 David S. Miller (davem@davemloft.net)
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
13#define __SYSCALL(nr, entry) .word entry
14	.text
15	.align	4
16#ifdef CONFIG_COMPAT
17	.globl sys_call_table32
18sys_call_table32:
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
22#endif /* CONFIG_COMPAT */
23
24	.align	4
25	.globl sys_call_table64, sys_call_table
26sys_call_table64:
27sys_call_table:
28#define __SYSCALL_WITH_COMPAT(nr, native, compat)	__SYSCALL(nr, native)
29#include <asm/syscall_table_64.h>	/* 64-bit native syscalls */
30