2004-03-12 02:58:38

by John Hawkes

[permalink] [raw]
Subject: [PATCH] 2.6.4-mm1 for ia64

The following patches allow 2.6.4-mm1 to build and boot on an ia64 sn.

-- John Hawkes



diff -X /home/hawkes/Patches/ignore.dirs -Naur linux-2.6.4-mm1/arch/ia64/kernel/unaligned.c linux-2.6.4-mm1-jh/arch/ia64/kernel/unaligned.c
--- linux-2.6.4-mm1/arch/ia64/kernel/unaligned.c 2004-02-23 21:30:26.000000000 -0800
+++ linux-2.6.4-mm1-jh/arch/ia64/kernel/unaligned.c 2004-03-11 17:52:29.000000000 -0800
@@ -1337,7 +1337,7 @@
* be holding locks...
*/
if (user_mode(regs))
- tty_write_message(current->tty, buf);
+ tty_write_message(current->signal->tty, buf);
buf[len-1] = '\0'; /* drop '\r' */
printk(KERN_WARNING "%s", buf); /* watch for command names containing %s */
}
diff -X /home/hawkes/Patches/ignore.dirs -Naur linux-2.6.4-mm1/fs/compat_ioctl.c linux-2.6.4-mm1-jh/fs/compat_ioctl.c
--- linux-2.6.4-mm1/fs/compat_ioctl.c 2004-03-07 21:13:19.000000000 -0800
+++ linux-2.6.4-mm1-jh/fs/compat_ioctl.c 2004-03-11 18:07:10.000000000 -0800
@@ -1604,7 +1604,7 @@
* To have permissions to do most of the vt ioctls, we either have
* to be the owner of the tty, or super-user.
*/
- if (current->tty == tty || capable(CAP_SYS_ADMIN))
+ if (current->signal->tty == tty || capable(CAP_SYS_ADMIN))
return 1;
return 0;
}
diff -X /home/hawkes/Patches/ignore.dirs -Naur linux-2.6.4-mm1/include/asm-ia64/ia32.h linux-2.6.4-mm1-jh/include/asm-ia64/ia32.h
--- linux-2.6.4-mm1/include/asm-ia64/ia32.h 2004-02-23 20:44:17.000000000 -0800
+++ linux-2.6.4-mm1-jh/include/asm-ia64/ia32.h 2004-03-11 18:03:21.000000000 -0800
@@ -6,7 +6,7 @@
#include <asm/ptrace.h>
#include <asm/signal.h>

-#define IA32_NR_syscalls 275 /* length of syscall table */
+#define IA32_NR_syscalls 281 /* length of syscall table */

#ifndef __ASSEMBLY__