[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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
%include "push_all.inc"
|
||||
%include "tasking.inc"
|
||||
|
||||
; Make sure to keep MAX_SYSCALLS in sync with
|
||||
|
||||
Reference in New Issue
Block a user