From 8d15b3f817ab60a994df97063c96121e9c9478e7 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Thu, 11 Mar 2010 20:47:22 +0100 Subject: [PATCH] Use cached address when running from ROM --- kern/mips/yeeloong/fwstart.S | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kern/mips/yeeloong/fwstart.S b/kern/mips/yeeloong/fwstart.S index 17fe78f40..c7ed420a4 100644 --- a/kern/mips/yeeloong/fwstart.S +++ b/kern/mips/yeeloong/fwstart.S @@ -618,4 +618,11 @@ continue: addiu $a0, $zero, -1 addiu $a1, $zero, -1 - addiu $a2, $zero, -1 + + /* Take advantage of cache. */ + lui $t0, %hi(cached_continue - 0x20000000) + addiu $t0, $t0, %lo(cached_continue - 0x20000000) + jr $t0 + addiu $a2, $zero, -1 + +cached_continue: \ No newline at end of file