mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
22 lines
231 B
C
22 lines
231 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
struct cpu_state;
|
|
|
|
enum class syscall : uint64_t
|
|
{
|
|
noop,
|
|
debug,
|
|
message,
|
|
pause,
|
|
sleep,
|
|
getpid,
|
|
|
|
last_syscall
|
|
};
|
|
|
|
void syscall_enable();
|
|
uintptr_t syscall_dispatch(uintptr_t, cpu_state &);
|
|
|