patch-2.4.20 linux-2.4.20/arch/mips/boot/addinitrd.c
Next file: linux-2.4.20/arch/mips/boot/elf2ecoff.c
Previous file: linux-2.4.20/arch/mips/boot/Makefile
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Thu Nov 28 15:53:09 2002
- Orig file:
linux-2.4.19/arch/mips/boot/addinitrd.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/mips/boot/addinitrd.c linux-2.4.20/arch/mips/boot/addinitrd.c
@@ -82,7 +82,7 @@
die ("open initrd");
if (fstat (fd_initrd, &st) < 0)
die ("fstat initrd");
- loadaddr = ((SWAB(esecs[2].s_vaddr) + SWAB(esecs[2].s_size)
+ loadaddr = ((SWAB(esecs[2].s_vaddr) + SWAB(esecs[2].s_size)
+ MIPS_PAGE_SIZE-1) & ~MIPS_PAGE_MASK) - 8;
if (loadaddr < (SWAB(esecs[2].s_vaddr) + SWAB(esecs[2].s_size)))
loadaddr += MIPS_PAGE_SIZE;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)