patch-2.4.22 linux-2.4.22/arch/ppc/boot/pmac/chrpmain.c

Next file: linux-2.4.22/arch/ppc/boot/pmac/coffmain.c
Previous file: linux-2.4.22/arch/ppc/boot/pmac/Makefile
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/arch/ppc/boot/pmac/chrpmain.c linux-2.4.22/arch/ppc/boot/pmac/chrpmain.c
@@ -38,13 +38,15 @@
 
 #define SCRATCH_SIZE	(128 << 10)
 
+typedef void (*kernel_start_t)(int, int, void *);
+
 void boot(int a1, int a2, void *prom)
 {
     unsigned sa, len;
     void *dst;
     unsigned char *im;
     unsigned initrd_start, initrd_size;
-    
+
     printf("chrpboot starting: loaded at 0x%p\n", &_start);
 
     initrd_size = (char *)(&__ramdisk_end) - (char *)(&__ramdisk_begin);
@@ -87,7 +89,7 @@
     sa = (unsigned long)PROG_START;
     printf("start address = 0x%x\n", sa);
 
-    (*(void (*)())sa)(a1, a2, prom);
+    (*(kernel_start_t)sa)(a1, a2, prom);
 
     printf("returned?\n");
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)