2002-07-22 Till Straumann <strauman@slac.stanford.edu>

* mpc6xx/mmu/bat.c: Per PR241, fix a tiny bug introduced by the
	fix for an earlier patch (PR213) which added support for setting
	BAT0 to setdbat().
This commit is contained in:
Joel Sherrill
2002-07-22 23:16:41 +00:00
parent 4cc3ff95ea
commit c1f00ca93f
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2002-07-22 Till Straumann <strauman@slac.stanford.edu>
* mpc6xx/mmu/bat.c: Per PR241, fix a tiny bug introduced by the
fix for an earlier patch (PR213) which added support for setting
BAT0 to setdbat().
2001-05-17 Joel Sherrill <joel@OARcorp.com>
* mpc6xx/exceptions/raw_exception.c, pc6xx/mmu/pte121.c: Modified

View File

@@ -55,7 +55,7 @@ void setdbat(int bat_index, unsigned long virt, unsigned long phys,
bat_addrs[bat_index].limit = virt + ((bl + 1) << 17) - 1;
bat_addrs[bat_index].phys = phys;
switch (bat_index) {
case 0 : asm_setdbat1(bat.word[0], bat.word[1]); break;
case 0 : asm_setdbat0(bat.word[0], bat.word[1]); break;
case 1 : asm_setdbat1(bat.word[0], bat.word[1]); break;
case 2 : asm_setdbat2(bat.word[0], bat.word[1]); break;
case 3 : asm_setdbat3(bat.word[0], bat.word[1]); break;