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


Ignore:
Timestamp:
2021-08-04T15:18:08Z (3 years ago)
Author:
jxsvoboda <5887334+jxsvoboda@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
98a935e
Parents:
de38873
git-author:
Dmitry Selyutin <ghostmansd@…> (2020-12-23 21:59:08)
git-committer:
jxsvoboda <5887334+jxsvoboda@…> (2021-08-04 15:18:08)
Message:

kernel: deprecate atomic_t

File:
1 edited

Legend:

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

    rde38873 r31e15be  
    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.