mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
The manifest can now supply a list of boot flags, including "test". Those get turned into the bootproto::args::flags field by the bootloader. The kernel takes those and uses the test flag to control enabling syscalls with the new "test" attribute, like the new test_finish syscall, which lets automated tests call back to the kernel to shut down the system.
22 lines
422 B
C++
22 lines
422 B
C++
#pragma once
|
|
// vim: ft=cpp
|
|
|
|
#include <stdint.h>
|
|
#include <j6/types.h>
|
|
|
|
struct cpu_state;
|
|
|
|
/*[[[cog code generation
|
|
from definitions.context import Context
|
|
|
|
ctx = Context(definitions_path)
|
|
ctx.parse("syscalls.def")
|
|
syscalls = ctx.interfaces["syscalls"]
|
|
|
|
cog.outl(f"constexpr size_t num_syscalls = {len(syscalls.methods)};")
|
|
]]]*/
|
|
/// [[[end]]]
|
|
|
|
void syscall_initialize(bool enable_test);
|
|
extern "C" void syscall_enable();
|