[rtems commit] powerpc: ppc_interrupt_get_disable_mask()
Sebastian Huber
sebh at rtems.org
Tue Aug 22 14:52:26 UTC 2017
Module: rtems
Branch: master
Commit: ea9084defdfdcf8d08ad02e8608b37351e475fb4
Changeset: http://git.rtems.org/rtems/commit/?id=ea9084defdfdcf8d08ad02e8608b37351e475fb4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Aug 10 11:34:32 2017 +0200
powerpc: ppc_interrupt_get_disable_mask()
Fix warning on 64-bit PowerPC.
Update #3082.
---
cpukit/score/cpu/powerpc/rtems/powerpc/registers.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
index 639a740..f3ea9c5 100644
--- a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
+++ b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
@@ -675,7 +675,7 @@ extern char _PPC_INTERRUPT_DISABLE_MASK[];
static inline uint32_t ppc_interrupt_get_disable_mask( void )
{
- return (uint32_t) _PPC_INTERRUPT_DISABLE_MASK;
+ return (uint32_t) (uintptr_t) _PPC_INTERRUPT_DISABLE_MASK;
}
static inline uint32_t ppc_interrupt_disable( void )
More information about the vc
mailing list