22 lines
342 B
C
22 lines
342 B
C
#pragma once
|
|
#include "sys/types.h"
|
|
// TODO: port mm.h
|
|
|
|
#if defined(ARCH_AMD64)
|
|
typedef uint64_t *mm_space_t;
|
|
#include "sys/amd64/sys/thread.h"
|
|
#endif
|
|
|
|
struct thread {
|
|
__plat_thread data;
|
|
|
|
uint64_t flags;
|
|
uint32_t pid;
|
|
uint32_t parent_pid;
|
|
|
|
mm_space_t space;
|
|
|
|
// TODO: maybe __sched_thread
|
|
struct thread *next;
|
|
};
|