summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-26 11:00:17 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-02-28 08:59:02 +0100
commite7549ff4a195e6985044945ac4e1f37a5f1ef7fb (patch)
tree765b9e7ea45ebc1a33b5536707eab1d60d88ba93 /c/src/lib/libcpu/powerpc
parentrtems: Cache manager documentation (diff)
downloadrtems-e7549ff4a195e6985044945ac4e1f37a5f1ef7fb.tar.bz2
rtems: Use size_t for cache line size
A cache line cannot have a negative size.
Diffstat (limited to 'c/src/lib/libcpu/powerpc')
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c
index fc144e3e24..3b9d06ff60 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c
@@ -21,7 +21,7 @@ int ppc_exc_alignment_handler(BSP_Exception_frame *frame, unsigned excNum)
/* Do we have a dcbz instruction? */
if ((opcode & 0xffe007ff) == 0x7c0007ec) {
- unsigned clsz = (unsigned) rtems_cache_get_data_line_size();
+ unsigned clsz = rtems_cache_get_data_line_size();
unsigned a = (opcode >> 16) & 0x1f;
unsigned b = (opcode >> 11) & 0x1f;
unsigned *regs = &frame->GPR0;