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

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

diff -urN linux-2.4.21/arch/ppc/boot/pmac/coffmain.c linux-2.4.22/arch/ppc/boot/pmac/coffmain.c
@@ -44,13 +44,15 @@
 
 static char heap[SCRATCH_SIZE];
 
+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("coffboot starting: loaded at 0x%p\n", &_start);
     setup_bats(RAM_START);
 
@@ -92,7 +94,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)