Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/console.c

    r5e904dd re90cfa6  
    5353#include <errno.h>
    5454#include <str.h>
     55#include <stdatomic.h>
    5556#include <abi/kio.h>
    5657#include <mm/frame.h> /* SIZE2FRAMES */
     
    6465
    6566/** Kernel log initialized */
    66 static atomic_t kio_inited = { false };
     67static atomic_bool kio_inited = false;
    6768
    6869/** First kernel log characters */
     
    202203
    203204        event_set_unmask_callback(EVENT_KIO, kio_update);
    204         atomic_set(&kio_inited, true);
     205        atomic_store(&kio_inited, true);
    205206}
    206207
     
    292293void kio_update(void *event)
    293294{
    294         if (!atomic_get(&kio_inited))
     295        if (!atomic_load(&kio_inited))
    295296                return;
    296297
Note: See TracChangeset for help on using the changeset viewer.