summaryrefslogtreecommitdiff
path: root/include/hilbert/kernel/syscall.hpp
blob: c83e5141ca2143959710460e9c13b005425dedae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <cstdint>

namespace hilbert::kernel::syscall {

  typedef void (*syscall_handler)(
    uint64_t &rax, uint64_t &rdi, uint64_t &rsi, uint64_t &rdx);

  void init_syscalls();

  //assumes this rax has not been used yet and is < 256.
  void add_syscall(uint64_t rax, syscall_handler handler);

}