Changeset c95daa5 in mainline for kernel/generic/src/lib/halt.c


Ignore:
Timestamp:
2020-12-23T21:59:08Z (3 years ago)
Author:
Dmitry Selyutin <ghostmansd@…>
Parents:
1483981
Message:

kernel: deprecate atomic_t

File:
1 edited

Legend:

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

    r1483981 rc95daa5  
    3636 */
    3737
     38#include <stdbool.h>
    3839#include <halt.h>
    3940#include <log.h>
     
    4445
    4546/** Halt flag */
    46 atomic_t haltstate = 0;
     47atomic_bool haltstate = false;
    4748
    4849/** Halt wrapper
     
    5758
    5859        if (!atomic_load(&haltstate)) {
    59                 atomic_store(&haltstate, 1);
     60                atomic_store(&haltstate, true);
    6061                rundebugger = true;
    6162        }
    6263#else
    63         atomic_store(&haltstate, 1);
     64        atomic_store(&haltstate, true);
    6465#endif
    6566
Note: See TracChangeset for help on using the changeset viewer.