15 File kernel/include/syscall.h

Defines the functions that handle various system calls, along with their numbers.

Author:

Juniper Beatitudes juniper@eyes-like-fire.org

Date:

2025-07-16

15.1 Structures and Types

Type Name
enum bea_syscall_t
System call enumeration.

15.2 Functions

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.

15.3 Structures and Types Documentation

15.3.1 enum bea_syscall_t

System 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
};

15.4 Functions Documentation

15.4.1 function bea_do_syscall

System call interrupt handler, fetches reason and argument from R0 and R1 respectively, return value is in R0.

void bea_do_syscall (
    void
)