12 lines
290 B
C
12 lines
290 B
C
#pragma once
|
|
|
|
#include <zinnia/sched.h>
|
|
|
|
typedef void (*syscall_fn_t)(struct arch_context* ctx);
|
|
|
|
void syscall_dispatch(struct arch_context* ctx);
|
|
|
|
#define __SYSCALL_DEFINE(_idx, name) void syscall_##name(struct arch_context* ctx);
|
|
#include <uapi/syscall_numbers.h>
|
|
#undef __SYSCALL_DEFINE
|