cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

systbl.S (1032B)


      1/* SPDX-License-Identifier: GPL-2.0-or-later */
      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) 
     11 */
     12
     13#include <asm/ppc_asm.h>
     14
     15.section .rodata,"a"
     16
     17#ifdef CONFIG_PPC64
     18	.p2align	3
     19#define __SYSCALL(nr, entry)	.8byte entry
     20#else
     21#define __SYSCALL(nr, entry)	.long entry
     22#endif
     23
     24#define __SYSCALL_WITH_COMPAT(nr, native, compat)	__SYSCALL(nr, native)
     25.globl sys_call_table
     26sys_call_table:
     27#ifdef CONFIG_PPC64
     28#include <asm/syscall_table_64.h>
     29#else
     30#include <asm/syscall_table_32.h>
     31#endif
     32
     33#ifdef CONFIG_COMPAT
     34#undef __SYSCALL_WITH_COMPAT
     35#define __SYSCALL_WITH_COMPAT(nr, native, compat)	__SYSCALL(nr, compat)
     36.globl compat_sys_call_table
     37compat_sys_call_table:
     38#define compat_sys_sigsuspend	sys_sigsuspend
     39#include <asm/syscall_table_32.h>
     40#endif