lkml.org 
[lkml]   [2007]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH RT] Fix NR_syscalls in ARM

The -rt patch adds a NR_syscalls symbol to the arm/unistd.h but
it is not the correct value as there are 348 syscalls on ARM
and the existing change sets the symbol to 322.

Signed-off-by: Deepak Saxena <dsaxena@mvista.com>

---

Russell: Why isn't this in mainline? Other arches all seem to have
this symbol already defined.

Index: linux-2.6.21/include/asm-arm/unistd.h
===================================================================
--- linux-2.6.21.orig/include/asm-arm/unistd.h
+++ linux-2.6.21/include/asm-arm/unistd.h
@@ -375,7 +375,7 @@
#define __NR_kexec_load (__NR_SYSCALL_BASE+347)

#ifndef __ASSEMBLY__
-#define NR_syscalls (__NR_set_mempolicy + 1 - __NR_SYSCALL_BASE)
+#define NR_syscalls (__NR_kexec_load + 1 - __NR_SYSCALL_BASE)
#endif

/*
--
Deepak Saxena - dsaxena@plexity.net - http://www.plexity.net
-
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/

\
 
 \ /
  Last update: 2007-06-02 01:17    [W:0.033 / U:1.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site