summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-01-11 14:41:00 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-01-28 16:45:42 +0100
commit036788d57b24ef22337825eb027aced3e31151c9 (patch)
treed3eb6a1ddfaa00f8757c5b5c9f5c510fab14d48a /c
parentbsp/mpc55xx: Fix MMU configuration for RSM6 (diff)
downloadrtems-036788d57b24ef22337825eb027aced3e31151c9.tar.bz2
bsps/powerpc: Add option for write-through cache
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc55xx/include/regs-mmu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc55xx/include/regs-mmu.h b/c/src/lib/libcpu/powerpc/mpc55xx/include/regs-mmu.h
index 16612e670b..aaddeec228 100644
--- a/c/src/lib/libcpu/powerpc/mpc55xx/include/regs-mmu.h
+++ b/c/src/lib/libcpu/powerpc/mpc55xx/include/regs-mmu.h
@@ -157,7 +157,8 @@ extern "C" {
.VALID = 1, .IPROT = 1, .TID = 0, .TS = 0, .TSIZE = (size) } \
}, \
.MAS2 = { .B = { \
- .EPN = (addr) >> 10, .VLE = 0, .W = 0, .I = (io), .M = 0, .G = (io), .E = 0 } \
+ .EPN = (addr) >> 10, .VLE = 0, \
+ .W = (io) == 2, .I = (io) == 1, .M = 0, .G = (io) == 1, .E = 0 } \
}, \
.MAS3 = { .B = { \
.RPN = (addr) >> 10, .U0 = 0, .U1 = 0, .U2 = 0, .U3 = 0, .UX = 0, \