Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/halt.c

    r1433ecda re90cfa6  
    4444
    4545/** Halt flag */
    46 atomic_t haltstate = { 0 };
     46atomic_t haltstate = 0;
    4747
    4848/** Halt wrapper
     
    5656        bool rundebugger = false;
    5757
    58         if (!atomic_get(&haltstate)) {
    59                 atomic_set(&haltstate, 1);
     58        if (!atomic_load(&haltstate)) {
     59                atomic_store(&haltstate, 1);
    6060                rundebugger = true;
    6161        }
    6262#else
    63         atomic_set(&haltstate, 1);
     63        atomic_store(&haltstate, 1);
    6464#endif
    6565
Note: See TracChangeset for help on using the changeset viewer.