powerpc/32s: Setup the early hash table at all time.
[linux-block.git] / arch / powerpc / kernel / systbl.S
CommitLineData
2874c5fd 1/* SPDX-License-Identifier: GPL-2.0-or-later */
9994a338
PM
2/*
3 * This file contains the table of syscall-handling functions.
4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
5 *
6 * Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
7 * and Paul Mackerras.
8 *
9 * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com)
10 * PPC64 updates by Dave Engebretsen (engebret@us.ibm.com)
9994a338
PM
11 */
12
9994a338
PM
13#include <asm/ppc_asm.h>
14
c857c43b
AB
15.section .rodata,"a"
16
9994a338 17#ifdef CONFIG_PPC64
46b45b10 18 .p2align 3
68b34588
NP
19#define __SYSCALL(nr, entry) .8byte entry
20#else
21#define __SYSCALL(nr, entry) .long entry
9994a338
PM
22#endif
23
c857c43b
AB
24.globl sys_call_table
25sys_call_table:
ab66dcc7 26#ifdef CONFIG_PPC64
ab66dcc7 27#include <asm/syscall_table_64.h>
ab66dcc7 28#else
ab66dcc7 29#include <asm/syscall_table_32.h>
ab66dcc7 30#endif
c857c43b 31
fbf508da 32#ifdef CONFIG_COMPAT
fbf508da
FK
33.globl compat_sys_call_table
34compat_sys_call_table:
a11b763d 35#define compat_sys_sigsuspend sys_sigsuspend
ab66dcc7 36#include <asm/syscall_table_c32.h>
fbf508da 37#endif