mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
Organize system calls
* syscalls should all return j6_status_t now * syscalls are grouped by category in name as well as in files
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include "j6/types.h"
|
||||
|
||||
struct cpu_state;
|
||||
|
||||
@@ -19,7 +20,7 @@ void syscall_enable();
|
||||
|
||||
namespace syscalls
|
||||
{
|
||||
#define SYSCALL(id, name, result, ...) result name (__VA_ARGS__);
|
||||
#define SYSCALL(id, name, ...) j6_status_t name (__VA_ARGS__);
|
||||
#include "syscalls.inc"
|
||||
#undef SYSCALL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user