Skip to content

Commit

Permalink
[MIPS] Au1xx0: really set KSEG0 to uncached on reboot
Browse files Browse the repository at this point in the history
    
Fix a really old buglet in AMD Au1xx0 restart code: instead of
modifying the whole CP0 Config.K0 field to 010b (meaning KSEG0 uncached)
before flushing the caches and resetting a board, it only sets bit 1 of that
reg. which is effectively a NOP since Config.K0 == 011b as the kernel sets it
up (which is also its default value for Au1xx0).
    
Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Sergei Shtylylov authored and Ralf Baechle committed Feb 7, 2006
1 parent 6fe2a56 commit 8073055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/au1000/common/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ void au1000_restart(char *command)
}

set_c0_status(ST0_BEV | ST0_ERL);
set_c0_config(CONF_CM_UNCACHED);
change_c0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
flush_cache_all();
write_c0_wired(0);

Expand Down

0 comments on commit 8073055

Please sign in to comment.