- Timestamp:
- Jun 29, 2017, 1:52:34 PM (7 years ago)
- Location:
- trunk/hal/x86_64/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_internal.h
r94 r96 42 42 43 43 uint32_t atomic_cas_32(volatile uint32_t *ptr, uint32_t exp, uint32_t new); 44 voidatomic_add_32(volatile uint32_t *ptr, int32_t incr);44 uint32_t atomic_add_32(volatile uint32_t *ptr, int32_t incr); 45 45 46 46 /* hal_gpt.c */ -
trunk/hal/x86_64/core/hal_remote.c
r94 r96 74 74 uint32_t new ) 75 75 { 76 return atomic_cas_32((volatile uint32_t *)xp, old, new);76 return (atomic_cas_32((volatile uint32_t *)xp, old, new) == old); 77 77 } 78 78 … … 80 80 uint32_t incr ) // XXX define as signed 81 81 { 82 atomic_add_32((volatile uint32_t *)xp, incr);82 return atomic_add_32((volatile uint32_t *)xp, incr); 83 83 } 84 84
Note: See TracChangeset
for help on using the changeset viewer.