Luna/luna/include/luna/Syscall.h
apio 586ca19b62
All checks were successful
continuous-integration/drone/push Build is passing
Add a VERY BASIC and hacky way of allocating memory from userspace
Only supports one-page allocations and doesn't have libc wrappers, which means it has to be invoked using syscall().
2023-01-11 23:02:42 +01:00

13 lines
280 B
C

#pragma once
#define enumerate_syscalls(_e) _e(exit) _e(console_write) _e(clock_gettime) _e(allocate_memory) _e(deallocate_memory)
enum Syscalls
{
#undef __enumerate
#define __enumerate(name) SYS_##name,
enumerate_syscalls(__enumerate)
#undef __enumerate
__count
};