summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-22 23:16:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-07-22 23:16:41 +0000
commitc1f00ca93fa73aec3fdf3018db0114d86efebec9 (patch)
tree42c6b5f25652fdec7a8eb5add6a4dcd5f256601a
parent4cc3ff95eae5724ef01622fecff409f0345c4611 (diff)
downloadrtems-c1f00ca93fa73aec3fdf3018db0114d86efebec9.tar.bz2
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().
-rw-r--r--c/src/lib/libcpu/powerpc/ChangeLog6
-rw-r--r--c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog
index 5d24e0e672..a2a3d63ff8 100644
--- a/c/src/lib/libcpu/powerpc/ChangeLog
+++ b/c/src/lib/libcpu/powerpc/ChangeLog
@@ -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
diff --git a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
index 8f54024bc5..9b5805cfdc 100644
--- a/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
+++ b/c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
@@ -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;