[rtems commit] bsp/qoriq: 64-bit support for interrupt controller
Sebastian Huber
sebh at rtems.org
Tue Aug 22 14:55:44 UTC 2017
Module: rtems
Branch: master
Commit: 77c8101686cffda03fdc476567f84a604d6ed268
Changeset: http://git.rtems.org/rtems/commit/?id=77c8101686cffda03fdc476567f84a604d6ed268
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Aug 10 14:14:26 2017 +0200
bsp/qoriq: 64-bit support for interrupt controller
Update #3082.
---
c/src/lib/libbsp/powerpc/qoriq/irq/irq.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/qoriq/irq/irq.c b/c/src/lib/libbsp/powerpc/qoriq/irq/irq.c
index b0c6cd2..c63ffee 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/irq/irq.c
+++ b/c/src/lib/libbsp/powerpc/qoriq/irq/irq.c
@@ -105,10 +105,10 @@ static volatile qoriq_pic_src_cfg *get_src_cfg(rtems_vector_number vector)
} else if (vector < QORIQ_IRQ_EXT_BASE) {
return &qoriq.pic.ii_1 [vector - n];
} else {
- uint32_t offs = ((uint32_t)
+ uintptr_t offs = ((uintptr_t)
src_cfg_offsets [vector - QORIQ_IRQ_EXT_BASE]) << 4;
- return (volatile qoriq_pic_src_cfg *) ((uint32_t) &qoriq.pic + offs);
+ return (volatile qoriq_pic_src_cfg *) ((uintptr_t) &qoriq.pic + offs);
}
}
More information about the vc
mailing list