[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

@@ -126,7 +126,7 @@ void fatal(area_t area, const char *fmt, ...);
namespace logs {
#define LOG(name, lvl) extern const log::area_t name;
#include "log_areas.inc"
#include "j6/tables/log_areas.inc"
#undef LOG
} // namespace logs

View File

@@ -9,7 +9,7 @@ namespace logs {
#define LOG(name, lvl) \
const log::area_t name = #name ## _h; \
const char * name ## _name = #name;
#include "log_areas.inc"
#include "j6/tables/log_areas.inc"
#undef LOG
}
@@ -44,7 +44,7 @@ logger::logger(uint8_t *buffer, size_t size, logger::immediate_cb output) :
#define LOG(name, lvl) \
register_area(logs::name, logs::name ## _name, log::level::lvl);
#include "log_areas.inc"
#include "j6/tables/log_areas.inc"
#undef LOG
}

View File

@@ -25,4 +25,4 @@
%define SYSCALL(n, name, a, b, c, d) SYSCALL name, n
%define SYSCALL(n, name, a, b, c, d, e) SYSCALL name, n
%include "syscalls.inc"
%include "j6/tables/syscalls.inc"

View File

@@ -7,7 +7,7 @@ extern "C" {
#endif
#define SYSCALL(n, name, ...) j6_status_t _syscall_ ## name (__VA_ARGS__);
#include "syscalls.inc"
#include "j6/tables/syscalls.inc"
#undef SYSCALL
#ifdef __cplusplus