From: Vladimir 'phcoder' Serbinenko Date: Fri, 13 May 2011 13:35:06 +0000 (+0200) Subject: * grub-core/boot/mips/startup_raw.S: Flush cache after loading X-Git-Tag: 1.99~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60ddfad3dab5c5eb479227d287f83ee66f67ebe4;p=thirdparty%2Fgrub.git * grub-core/boot/mips/startup_raw.S: Flush cache after loading decompressor. --- diff --git a/ChangeLog b/ChangeLog index d1a1d6f05..ede161faf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-05-13 Vladimir Serbinenko + + * grub-core/boot/mips/startup_raw.S: Flush cache after loading + decompressor. + 2011-05-13 Vladimir Serbinenko * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call diff --git a/grub-core/boot/mips/startup_raw.S b/grub-core/boot/mips/startup_raw.S index 2e874e251..6ba04c12f 100644 --- a/grub-core/boot/mips/startup_raw.S +++ b/grub-core/boot/mips/startup_raw.S @@ -150,6 +150,13 @@ argdone: b 1b addiu $t1, $t1, 1 2: + lui $a0, %hi(base) + addiu $a0, $a0, %lo(base) + lui $a1, %hi(_end) + addiu $a1, %lo(_end) + subu $a1,$a1,$a0 + +#include "../../kern/mips/cache_flush.S" /* Decompress the payload. */ lui $a0, %hi(__bss_start)