summaryrefslogtreecommitdiff
path: root/core/thread/root_thread.c
blob: 2bba7c2687660917bfa6bc8cc5815da98ba0cafd (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "thread.h"

struct thread __root_thread = {
    .thread_magic = THREAD_MAGIC,
    .name = "root",
    .list = { .next = &__root_thread.list, .prev = &__root_thread.list },
    .blocked = NULL,
    .prio = 0,
};

struct thread *__current = &__root_thread;