20 #ifndef KERNEL_CORE_SYSCALL_MANAGER_H 21 #define KERNEL_CORE_SYSCALL_MANAGER_H 23 #include "pedigree/kernel/compiler.h" 24 #include "pedigree/kernel/processor/SyscallHandler.h" 25 #include "pedigree/kernel/processor/state_forward.h" 26 #include "pedigree/kernel/processor/types.h" 58 Function_t function, uintptr_t p1 = 0, uintptr_t p2 = 0,
59 uintptr_t p3 = 0, uintptr_t p4 = 0, uintptr_t p5 = 0);
62 virtual uintptr_t
syscall(SyscallState &state);
64 typedef uintptr_t (*SyscallCallback)(SyscallState &);
67 uintptr_t registerSyscall(
Function_t function, SyscallCallback func);
87 SyscallCallback m_Functions[16];
virtual uintptr_t syscall(SyscallState &State)=0
static KernelCoreSyscallManager m_Instance
static KernelCoreSyscallManager & instance()