summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHirokazu Takata <takata@linux-m32r.org>2004-09-23 19:43:59 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-23 19:43:59 -0700
commitdf3eebb126163135f1b44374bc70548ea0dae6e7 (patch)
tree447778fdc0c4e72a5dcd2ed63d3abd21e202aa98 /include
parent854e70311e0e073d066d87d8da5a7d4a0dde2ebe (diff)
[PATCH] m32r: upgrade for recent kernel changes
This patch is for upgrading m32r's code to the 2.6.9-rc1-mm5 source as well as the other architectures. * arch/m32r/Makefile: Replace assigment to CHECK with assignment to CHECKFLAGS * arch/m32r/kernel/vmlinux.lds.S: - out-of-line locks / m32r; Include LOCK_TEXT to .text section. - Move param section out of init area, for export of built-in module params * arch/m32r/mm/ioremap.c (__ioremap): Add __iomem modifier to the return value type of __ioremap() for much stricter type-checking. * include/asm-m32r/resource.h: - rlimit-based mlocks for unprivileged users - Increase per-user mlock limit default to 32k * include/asm-m32r/socket.h: - [NET]: Move SOCK_foo types into linux/net.h * include/asm-m32r/unistd.h: Add system calls; taken from asm-i386/unistd.h. - [PATCH][2/6] perfctr-2.7.3 for 2.6.7-rc1-mm1: i386 (05/31/2004) - [PATCH] Make key management use syscalls not prctls (09/06/2004) Signed-off-by: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-m32r/resource.h2
-rw-r--r--include/asm-m32r/socket.h20
-rw-r--r--include/asm-m32r/unistd.h20
3 files changed, 17 insertions, 25 deletions
diff --git a/include/asm-m32r/resource.h b/include/asm-m32r/resource.h
index db36222baf2a..69ece069a049 100644
--- a/include/asm-m32r/resource.h
+++ b/include/asm-m32r/resource.h
@@ -43,7 +43,7 @@
{ RLIM_INFINITY, RLIM_INFINITY }, \
{ 0, 0 }, \
{ INR_OPEN, INR_OPEN }, \
- { RLIM_INFINITY, RLIM_INFINITY }, \
+ { MLOCK_LIMIT, MLOCK_LIMIT }, \
{ RLIM_INFINITY, RLIM_INFINITY }, \
{ RLIM_INFINITY, RLIM_INFINITY }, \
{ MAX_SIGPENDING, MAX_SIGPENDING }, \
diff --git a/include/asm-m32r/socket.h b/include/asm-m32r/socket.h
index 09e15566dbfd..159519d99042 100644
--- a/include/asm-m32r/socket.h
+++ b/include/asm-m32r/socket.h
@@ -1,10 +1,6 @@
#ifndef _ASM_M32R_SOCKET_H
#define _ASM_M32R_SOCKET_H
-/* $Id$ */
-
-/* orig : i386 2.4.18 */
-
#include <asm/sockios.h>
/* For setsockoptions(2) */
@@ -51,20 +47,4 @@
#define SO_PEERSEC 31
-/* Nasty libc5 fixup - bletch */
-#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
-/* Socket types. */
-#define SOCK_STREAM 1 /* stream (connection) socket */
-#define SOCK_DGRAM 2 /* datagram (conn.less) socket */
-#define SOCK_RAW 3 /* raw socket */
-#define SOCK_RDM 4 /* reliably-delivered message */
-#define SOCK_SEQPACKET 5 /* sequential packet socket */
-#define SOCK_PACKET 10 /* linux specific way of */
- /* getting packets at the dev */
- /* level. For writing rarp and */
- /* other similar things on the */
- /* user level. */
-#define SOCK_MAX (SOCK_PACKET+1)
-#endif
-
#endif /* _ASM_M32R_SOCKET_H */
diff --git a/include/asm-m32r/unistd.h b/include/asm-m32r/unistd.h
index 9de3d42ba355..31aca939104f 100644
--- a/include/asm-m32r/unistd.h
+++ b/include/asm-m32r/unistd.h
@@ -292,15 +292,27 @@
#define __NR_mq_timedreceive (__NR_mq_open+3)
#define __NR_mq_notify (__NR_mq_open+4)
#define __NR_mq_getsetattr (__NR_mq_open+5)
-#define __NR_kexec_load 283
+#define __NR_sys_kexec_load 283
+#define __NR_waitid 284
+#define __NR_perfctr_info 285
+#define __NR_vperfctr_open (__NR_perfctr_info+1)
+#define __NR_vperfctr_control (__NR_perfctr_info+2)
+#define __NR_vperfctr_unlink (__NR_perfctr_info+3)
+#define __NR_vperfctr_iresume (__NR_perfctr_info+4)
+#define __NR_vperfctr_read (__NR_perfctr_info+5)
+#define __NR_add_key 291
+#define __NR_request_key 292
+#define __NR_keyctl 293
-#define NR_syscalls 284
+#define NR_syscalls 294
-/* user-visible error numbers are in the range -1 - -124: see <asm-m32r/errno.h> */
+/* user-visible error numbers are in the range -1 - -128: see
+ * <asm-m32r/errno.h>
+ */
#define __syscall_return(type, res) \
do { \
- if ((unsigned long)(res) >= (unsigned long)(-125)) { \
+ if ((unsigned long)(res) >= (unsigned long)(-(128 + 1))) { \
/* Avoid using "res" which is declared to be in register r0; \
errno might expand to a function call and clobber it. */ \
int __err = -(res); \