[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Patch for PReP systems



I had some problems with 2.2.8/9/2.3.0 official release and PReP
(building and SCSI hangs on Motorola PReP boards).

After comparing versus a local version of the kernel, I found the
interrupt handling stuff got mangled on the way to the official release.
This patch fixes MPIC support (causes kernel hang on boot) in 2.2.8,
2.2.9, 2.3.0.  Also has the sys_mmap build fix and change to default root
from /dev/sda2 on Mot. PReP (the standard).

diff -urd linux.orig/arch/ppc/kernel/prep_pci.c linux/arch/ppc/kernel/prep_pci.c
--- linux.orig/arch/ppc/kernel/prep_pci.c	Tue May 11 08:24:32 1999
+++ linux/arch/ppc/kernel/prep_pci.c	Thu May 13 15:41:53 1999
@@ -38,6 +38,8 @@
 /* Used for Motorola to store system config register */
 static unsigned long	*ProcInfo;
 
+extern void chrp_do_IRQ(struct pt_regs *,int , int);
+
 /* Tables for known hardware */   
 
 /* Motorola PowerStackII - Utah */
@@ -730,6 +732,8 @@
 
 	OpenPIC_InitSenses = mvme2600_openpic_initsenses;
 	OpenPIC_NumInitSenses = sizeof(mvme2600_openpic_initsenses);
+
+	ppc_md.do_IRQ = chrp_do_IRQ;
 
 	/* If raven is present on Motorola store the system config register
 	 * for later use.
diff -urd linux.orig/arch/ppc/kernel/prep_setup.c 
linux/arch/ppc/kernel/prep_setup.c
--- linux.orig/arch/ppc/kernel/prep_setup.c     Fri May 14 08:25:53 1999
+++ linux/arch/ppc/kernel/prep_setup.c  Fri May 14 08:26:25 1999
@@ -247,7 +247,7 @@
        case _PREP_Motorola:
                /* Enable L2.  Assume we don't need to flush -- Cort*/
                *(unsigned char *)(0x8000081c) |= 3;
-               ROOT_DEV = to_kdev_t(0x0801); /* sda1 */
+               ROOT_DEV = to_kdev_t(0x0802); /* sda2 */
                break;
        case _PREP_Radstone:
                ROOT_DEV = to_kdev_t(0x0801); /* sda1 */
diff -urd linux.orig/arch/ppc/kernel/syscalls.c linux/arch/ppc/kernel/syscalls.c
--- linux.orig/arch/ppc/kernel/syscalls.c	Sat May  8 11:14:01 1999
+++ linux/arch/ppc/kernel/syscalls.c	Thu May 13 15:42:06 1999
@@ -33,6 +33,7 @@
 #include <linux/sys.h>
 #include <linux/ipc.h>
 #include <linux/utsname.h>
+#include <linux/file.h>
 
 #include <asm/uaccess.h>
 #include <asm/ipc.h>

--
Matt Porter
mmporter@home.com
This is Linux Country. On a quiet night, you can hear Windows reboot.


[[ This message was sent via the linuxppc-dev mailing list.  Replies are ]]
[[ not  forced  back  to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting.   ]]


Reply to: