[PATCH] rtems: Use atomic operation with correct type

Daniel Cederman cederman at gaisler.com
Wed Mar 11 09:53:59 UTC 2015


---
 c/src/lib/libcpu/shared/src/cache_manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libcpu/shared/src/cache_manager.c b/c/src/lib/libcpu/shared/src/cache_manager.c
index 7ff1166..89ec88f 100644
--- a/c/src/lib/libcpu/shared/src/cache_manager.c
+++ b/c/src/lib/libcpu/shared/src/cache_manager.c
@@ -189,7 +189,7 @@ _Cache_manager_Send_smp_msg(
 
   _Cache_manager_Process_cache_messages();
 
-  while ( !_Atomic_Load_uint( &node.done, ATOMIC_ORDER_ACQUIRE ) );
+  while ( !_Atomic_Load_ulong( &node.done, ATOMIC_ORDER_ACQUIRE ) );
 }
 #endif
 
-- 
2.2.1



More information about the devel mailing list