blob: a27394bf7d7f63adc2019bb714f1f0331eedab42 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
David S. Millerbc5a2e62007-07-18 14:28:59 -07002/* systbls.S: System call entry point tables for OS compatibility.
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 * The native Linux system call table lives here also.
4 *
David S. Millerbc5a2e62007-07-18 14:28:59 -07005 * Copyright (C) 1995, 1996, 2007 David S. Miller (davem@davemloft.net)
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 * 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
Firoz Khan36800332018-11-14 10:56:31 +053013#define __SYSCALL(nr, entry, nargs) .word entry
Linus Torvalds1da177e2005-04-16 15:20:36 -070014 .text
15 .align 4
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#ifdef CONFIG_COMPAT
Linus Torvalds1da177e2005-04-16 15:20:36 -070017 .globl sys_call_table32
18sys_call_table32:
Firoz Khan36800332018-11-14 10:56:31 +053019#include <asm/syscall_table_c32.h> /* Compat syscalls */
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#endif /* CONFIG_COMPAT */
21
Linus Torvalds1da177e2005-04-16 15:20:36 -070022 .align 4
23 .globl sys_call_table64, sys_call_table
24sys_call_table64:
25sys_call_table:
Firoz Khan36800332018-11-14 10:56:31 +053026#include <asm/syscall_table_64.h> /* 64-bit native syscalls */
27#undef __SYSCALL