mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
* syscalls should all return j6_status_t now * syscalls are grouped by category in name as well as in files
27 lines
449 B
C++
27 lines
449 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "j6/types.h"
|
|
|
|
struct cpu_state;
|
|
|
|
enum class syscall : uint64_t
|
|
{
|
|
#define SYSCALL(id, name, result, ...) name = id,
|
|
#include "syscalls.inc"
|
|
#undef SYSCALL
|
|
|
|
// Maximum syscall id. If you change this, also change
|
|
// MAX_SYSCALLS in syscall.s
|
|
MAX = 0x40
|
|
};
|
|
|
|
void syscall_enable();
|
|
|
|
namespace syscalls
|
|
{
|
|
#define SYSCALL(id, name, ...) j6_status_t name (__VA_ARGS__);
|
|
#include "syscalls.inc"
|
|
#undef SYSCALL
|
|
}
|