From 79f790c2b9d6a368f61a99af07d04ed9348ca504 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Mon, 8 Apr 2013 14:40:21 -0500 Subject: Fixes for GCC 4.7 Change-Id: Ief0b9202e13bd70cf0de84ca3cb20f5c6df4d3d8 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4035 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III --- src/kernel/intmsghandler.C | 5 +++-- src/kernel/ptmgr.C | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'src/kernel') diff --git a/src/kernel/intmsghandler.C b/src/kernel/intmsghandler.C index 538d322ae..0a6e87b0d 100644 --- a/src/kernel/intmsghandler.C +++ b/src/kernel/intmsghandler.C @@ -100,8 +100,9 @@ void InterruptMsgHdlr::handleInterrupt() if(cv_instance) { cv_instance->sendMessage(MSG_INTR_EXTERN, - (void *)pir, - (void *)xirr, + reinterpret_cast(pir), + reinterpret_cast( + static_cast(xirr)), NULL); } } diff --git a/src/kernel/ptmgr.C b/src/kernel/ptmgr.C index 35f55873a..bb1380b4d 100644 --- a/src/kernel/ptmgr.C +++ b/src/kernel/ptmgr.C @@ -5,7 +5,7 @@ /* */ /* IBM CONFIDENTIAL */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2012 */ +/* COPYRIGHT International Business Machines Corp. 2011,2013 */ /* */ /* p1 */ /* */ @@ -44,7 +44,7 @@ * @param[in] i_lastbit Bit to stop extraction on, inclusive * @return uint64_t Right-justified data */ -ALWAYS_INLINE static +ALWAYS_INLINE static inline uint64_t EXTRACT_RJ( uint64_t i_var64, uint64_t i_startbit, uint64_t i_lastbit ) @@ -63,7 +63,7 @@ uint64_t EXTRACT_RJ( uint64_t i_var64, * @return uint64_t Left-justified data */ /* -ALWAYS_INLINE static +ALWAYS_INLINE static inline uint64_t EXTRACT_LJ( uint64_t var64, uint64_t i_startbit, uint64_t i_lastbit ) @@ -91,7 +91,7 @@ uint64_t EXTRACT_LJ( uint64_t var64, * original bit length * @return uint64_t Left-justified data */ -ALWAYS_INLINE static +ALWAYS_INLINE static inline uint64_t EXTRACT_RJ_LEN( uint64_t i_lastword, uint64_t i_bitlen, uint64_t i_startbit, @@ -159,7 +159,7 @@ uint64_t EXTRACT_RJ_LEN( uint64_t i_lastword, * @return uint64_t Left-justified data */ /* -ALWAYS_INLINE static +ALWAYS_INLINE static inline uint64_t EXTRACT_LJ_LEN( uint64_t i_lastword, uint64_t i_bitlen, uint64_t i_startbit, @@ -973,7 +973,7 @@ uint64_t PageTableManager::getAccessType( const PageTableEntry* i_pte ) /** * @brief Fill in default values for the PTE */ -ALWAYS_INLINE +ALWAYS_INLINE inline void PageTableManager::setupDefaultPTE( PageTableEntry* o_pte ) { o_pte->B = 0b01; //Segment Size (01=1TB) -- cgit v1.2.1