The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
syscall_dispatch.c File Reference
#include "syscall.h"
#include "syscall_internal.h"
#include "fd_table.h"
#include "kernel/vfs/poll.h"
#include "kernel/process/process.h"
#include "kernel/signal/signal.h"
#include "kernel/time/clock.h"
#include "kernel/sync/futex.h"
#include "arch/x86/cpu/isr.h"
#include "arch/x86/cpu/idt.h"
#include "arch/x86/cpu/gdt.h"

Functions

void syscall_initialize (void)
 initialize the system call interface.
void syscall_init_core (void)
 set up the system call entry of the core that runs the call (the MSRs of the syscall instruction on x86_64).

Function Documentation

◆ syscall_initialize()

void syscall_initialize ( void )

initialize the system call interface.

registers the int 0x80 handler and opens the gate to ring 3. must be called after isr_initialize().

◆ syscall_init_core()

void syscall_init_core ( void )

set up the system call entry of the core that runs the call (the MSRs of the syscall instruction on x86_64).

syscall_initialize() does it for the boot core; each other core calls this when it starts.