Changes in kernel/generic/src/lib/halt.c [e90cfa6:1433ecda] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/halt.c
re90cfa6 r1433ecda 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_ load(&haltstate)) {59 atomic_s tore(&haltstate, 1);58 if (!atomic_get(&haltstate)) { 59 atomic_set(&haltstate, 1); 60 60 rundebugger = true; 61 61 } 62 62 #else 63 atomic_s tore(&haltstate, 1);63 atomic_set(&haltstate, 1); 64 64 #endif 65 65
Note:
See TracChangeset
for help on using the changeset viewer.