[rtems commit] bsps/powerpc: Add option for write-through cache
Sebastian Huber
sebh at rtems.org
Mon Jan 28 15:43:03 UTC 2013
Module: rtems
Branch: master
Commit: 036788d57b24ef22337825eb027aced3e31151c9
Changeset: http://git.rtems.org/rtems/commit/?id=036788d57b24ef22337825eb027aced3e31151c9
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Jan 11 14:41:00 2013 +0100
bsps/powerpc: Add option for write-through cache
---
.../lib/libcpu/powerpc/mpc55xx/include/regs-mmu.h | 3 ++-
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 16612e6..aaddeec 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, \
More information about the vc
mailing list