Commit 459e0483 authored by David Miller's avatar David Miller Committed by Chris Wright

[PATCH] SPARC: Fix missed bump of NR_SYSCALLS.

When I added the robust futex syscall entries I forgot to bump
NR_SYSCALLS.  This is an easy mistake to make because NR_SYSCALLS
lived in entry.S which is nowhere near unistd.h or syscalls.S, so
while we're here move it's definition into unistd.h so this is
unlikely to ever happen again.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent d8b789ca
...@@ -32,13 +32,12 @@ ...@@ -32,13 +32,12 @@
#include <asm/mxcc.h> #include <asm/mxcc.h>
#include <asm/thread_info.h> #include <asm/thread_info.h>
#include <asm/param.h> #include <asm/param.h>
#include <asm/unistd.h>
#include <asm/asmmacro.h> #include <asm/asmmacro.h>
#define curptr g6 #define curptr g6
#define NR_SYSCALLS 300 /* Each OS is different... */
/* These are just handy. */ /* These are just handy. */
#define _SV save %sp, -STACKFRAME_SZ, %sp #define _SV save %sp, -STACKFRAME_SZ, %sp
#define _RS restore #define _RS restore
......
...@@ -22,11 +22,10 @@ ...@@ -22,11 +22,10 @@
#include <asm/auxio.h> #include <asm/auxio.h>
#include <asm/sfafsr.h> #include <asm/sfafsr.h>
#include <asm/pil.h> #include <asm/pil.h>
#include <asm/unistd.h>
#define curptr g6 #define curptr g6
#define NR_SYSCALLS 300 /* Each OS is different... */
.text .text
.align 32 .align 32
......
...@@ -319,6 +319,8 @@ ...@@ -319,6 +319,8 @@
#define __NR_set_robust_list 300 #define __NR_set_robust_list 300
#define __NR_get_robust_list 301 #define __NR_get_robust_list 301
#define NR_SYSCALLS 302
#ifdef __KERNEL__ #ifdef __KERNEL__
/* WARNING: You MAY NOT add syscall numbers larger than 301, since /* WARNING: You MAY NOT add syscall numbers larger than 301, since
* all of the syscall tables in the Sparc kernel are * all of the syscall tables in the Sparc kernel are
......
...@@ -321,6 +321,8 @@ ...@@ -321,6 +321,8 @@
#define __NR_set_robust_list 300 #define __NR_set_robust_list 300
#define __NR_get_robust_list 301 #define __NR_get_robust_list 301
#define NR_SYSCALLS 302
#ifdef __KERNEL__ #ifdef __KERNEL__
/* WARNING: You MAY NOT add syscall numbers larger than 301, since /* WARNING: You MAY NOT add syscall numbers larger than 301, since
* all of the syscall tables in the Sparc kernel are * all of the syscall tables in the Sparc kernel are
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment