patch-2.1.79 linux/arch/ppc/boot/mkprep.c

Next file: linux/arch/ppc/boot/offset
Previous file: linux/arch/ppc/boot/misc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/arch/ppc/boot/mkprep.c linux/arch/ppc/boot/mkprep.c
@@ -131,8 +131,8 @@
   argptr++;
 
   /* skip elf header in input file */
-  if ( !prep )
-	  lseek(in_fd, elfhdr_size, SEEK_SET);
+  /*if ( !prep )*/
+  lseek(in_fd, elfhdr_size, SEEK_SET);
   
   /* write prep partition if necessary */
   if ( prep )
@@ -164,7 +164,7 @@
   bzero( block, sizeof block );
  
   /* set entry point and boot image size skipping over elf header */
-  *entry = cpu_to_le32(0x400+65536);
+  *entry = cpu_to_le32(0x400/*+65536*/);
   *length = cpu_to_le32(info.st_size+0x400);
 
   /* sets magic number for msdos partition (used by linux) */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov