Defines the functions that handle various system calls, along with their numbers.
Author:
Juniper Beatitudes juniper@eyes-like-fire.org
Date:
2025-07-16
| Type | Name |
|---|---|
| enum | bea_syscall_t
System call enumeration. |
| Type | Name |
|---|---|
| void | bea_do_syscall
(void) System call interrupt handler, fetches reason and argument from R0 and R1 respectively, return value is in R0. |
bea_syscall_tSystem call enumeration.
enum bea_syscall_t {
BEA_SYSCALL_LOG = 0,
BEA_SYSCALL_DRIVER_RQ,
BEA_SYSCALL_SILENCE_RQ,
BEA_SYSCALL_YIELD,
BEA_SYSCALL_MALLOC,
BEA_SYSCALL_FREE,
BEA_SYSCALL_CALLOC,
BEA_SYSCALL_REALLOC,
BEA_SYSCALL_SPAWN,
BEA_SYSCALL_KILL,
BEA_NUM_SYSCALLS
};bea_do_syscallSystem call interrupt handler, fetches reason and argument from R0 and R1 respectively, return value is in R0.
void bea_do_syscall (
void
)