Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
syscall.c File Reference
#include "syscall.h"
#include "hal/cpu/core.h"
#include "hal/cpu/interrupt.h"
#include "hal/cpu/msr.h"
#include "hal/cpu/paging.h"
#include "init/init.h"
#include "libk/serial.h"
#include "sys/err_no.h"

Go to the source code of this file.

Functions

void syscall_dispatch (interrupt_stack_frame_t *rsp)
 
void syscall_entry (void)
 
static const char * get_syscall_name (int rax)
 
void syscall_init (void)
 
 INIT (Syscall)
 

Variables

const char * syscall_names [335]
 

Function Documentation

◆ get_syscall_name()

static const char * get_syscall_name ( int rax)
static

Definition at line 116 of file syscall.c.

References NULL, and syscall_names.

Referenced by syscall_dispatch().

◆ INIT()

INIT ( Syscall )

Definition at line 113 of file syscall.c.

References syscall_init().

◆ syscall_dispatch()

◆ syscall_entry()

void syscall_entry ( void )
extern

Referenced by syscall_init().

◆ syscall_init()

void syscall_init ( void )

Definition at line 15 of file syscall.c.

References MSR_EFER, MSR_FMASK, MSR_LSTAR, MSR_STAR, syscall_entry(), vxRDMSR(), and vxWRSR().

Referenced by __attribute__(), and INIT().

Variable Documentation

◆ syscall_names

const char* syscall_names[335]
extern

Definition at line 1 of file syscall_def.c.

Referenced by get_syscall_name().