Changeset fc10e1b in mainline for kernel/generic/src/lib/halt.c
- Timestamp:
- 2018-09-07T16:34:11Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d2c91ab
- Parents:
- 508b0df1 (diff), e90cfa6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/halt.c
r508b0df1 rfc10e1b 44 44 45 45 /** Halt flag */ 46 atomic_t haltstate = { 0 };46 atomic_t haltstate = 0; 47 47 48 48 /** Halt wrapper … … 56 56 bool rundebugger = false; 57 57 58 if (!atomic_ get(&haltstate)) {59 atomic_s et(&haltstate, 1);58 if (!atomic_load(&haltstate)) { 59 atomic_store(&haltstate, 1); 60 60 rundebugger = true; 61 61 } 62 62 #else 63 atomic_s et(&haltstate, 1);63 atomic_store(&haltstate, 1); 64 64 #endif 65 65
Note:
See TracChangeset
for help on using the changeset viewer.