[kernel] Move 'table' includes to j6/tables

Move all table-style include files that are part of the public kernel
interface to the j6/tables include path
This commit is contained in:
Justin C. Miller
2021-01-28 18:42:42 -08:00
parent 3aa909b917
commit c3dd65457d
15 changed files with 10 additions and 43 deletions

View File

@@ -17,7 +17,7 @@ public:
enum class type : uint16_t
{
#define OBJECT_TYPE( name, val ) name = val,
#include "j6/object_types.inc"
#include "j6/tables/object_types.inc"
#undef OBJECT_TYPE
max

View File

@@ -69,7 +69,7 @@ syscall_enable()
syscall_names[id] = #name; \
static_assert( id <= num_calls, "Syscall " #name " has id > syscall::MAX" ); \
log::debug(logs::syscall, "Enabling syscall 0x%02x as " #name , id);
#include "syscalls.inc"
#include "j6/tables/syscalls.inc"
#undef SYSCALL
}

View File

@@ -8,7 +8,7 @@ struct cpu_state;
enum class syscall : uint64_t
{
#define SYSCALL(id, name, ...) name = id,
#include "syscalls.inc"
#include "j6/tables/syscalls.inc"
#undef SYSCALL
// Maximum syscall id. If you change this, also change
@@ -21,6 +21,6 @@ void syscall_enable();
namespace syscalls
{
#define SYSCALL(id, name, ...) j6_status_t name (__VA_ARGS__);
#include "syscalls.inc"
#include "j6/tables/syscalls.inc"
#undef SYSCALL
}

View File

@@ -1,4 +1,3 @@
%include "push_all.inc"
%include "tasking.inc"
; Make sure to keep MAX_SYSCALLS in sync with