#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();
