[PATCH] Remove v850 dependency on NR_syscalls

Miles Bader (miles@lsi.nec.co.jp)
Wed, 5 Mar 2003 16:31:09 +0900 (JST)


diff -ruN -X../cludes linux-2.5.64-moo.orig/arch/v850/kernel/entry.S linux-2.5.64-moo/arch/v850/kernel/entry.S
--- linux-2.5.64-moo.orig/arch/v850/kernel/entry.S 2003-02-25 10:44:59.000000000 +0900
+++ linux-2.5.64-moo/arch/v850/kernel/entry.S 2003-03-05 16:13:52.000000000 +0900
@@ -438,11 +438,11 @@
LP register should point to the location where the called function
should return. [note that MAKE_SYS_CALL uses label 1] */
#define MAKE_SYS_CALL \
- /* See if the system call number is valid. */ \
- addi -NR_syscalls, r12, r0; \
- bnh 1f; \
/* Figure out which function to use for this system call. */ \
shl 2, r12; \
+ /* See if the system call number is valid. */ \
+ addi lo(CSYM(sys_call_table) - sys_call_table_end), r12, r0; \
+ bnh 1f; \
mov hilo(CSYM(sys_call_table)), r19; \
add r19, r12; \
ld.w 0[r12], r12; \
@@ -982,8 +980,5 @@
.long CSYM(sys_pivot_root) // 200
.long CSYM(sys_gettid)
.long CSYM(sys_tkill)
- .long CSYM(sys_ni_syscall) // sys_mincore
- .long CSYM(sys_ni_syscall) // sys_madvise
-
- .space (NR_syscalls-205)*4
+sys_call_table_end:
C_END(sys_call_table)
diff -ruN -X../cludes linux-2.5.64-moo.orig/include/asm-v850/unistd.h linux-2.5.64-moo/include/asm-v850/unistd.h
--- linux-2.5.64-moo.orig/include/asm-v850/unistd.h 2002-12-24 15:01:24.000000000 +0900
+++ linux-2.5.64-moo/include/asm-v850/unistd.h 2003-03-05 14:47:11.000000000 +0900
@@ -1,8 +1,8 @@
/*
* include/asm-v850/unistd.h -- System call numbers and invocation mechanism
*
- * Copyright (C) 2001,02 NEC Corporation
- * Copyright (C) 2001,02 Miles Bader <miles@gnu.org>
+ * Copyright (C) 2001,02,03 NEC Electronics Corporation
+ * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org>
*
* This file is subject to the terms and conditions of the GNU General
* Public License. See the file COPYING in the main directory of this
@@ -205,8 +205,6 @@
#define __NR_pivot_root 200
#define __NR_gettid 201
#define __NR_tkill 202
-/* #define __NR_mincore 203 */
-/* #define __NR_madvise 204 */


/* Syscall protocol:
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/