• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * Copyright (C) 2020 Loongson Technology Corporation Limited
4 *
5 * Author: Hanlu Li <lihanlu@loongson.cn>
6 */
7 
8 #include <uapi/asm/unistd.h>
9 
10 #define NR_syscalls (__NR_syscalls)
11 
12 /* for binary translation */
13 #if defined(CONFIG_CPU_HAS_LBT)
14 #define __ARCH_WANT_SYS_ALARM
15 #define __ARCH_WANT_SYS_GETPGRP
16 
17 #define __NR_MIPS64_Linux		5000
18 #define __NR_MIPS64_Linux_syscalls	329
19 #define __NR_i386_Linux_syscalls	386
20 
21 #define TRANS_MIPS_N64			0x010000
22 #define TRANS_I386			0x100000
23 #define TRANS_X64			0x110000
24 #define TRANS_ARCH_MASK			0xffff0000
25 #define SYS_NUM_MASK			0xffff
26 #endif
27