MonkOS  v0.1
A simple 64-bit operating system (x86_64)
syscall.c File Reference

System call support. More...

Go to the source code of this file.

Macros

#define MSR_IA32_STAR   0xc0000081
 
#define MSR_IA32_LSTAR   0xc0000082
 
#define MSR_IA32_FMASK   0xc0000084
 

Functions

static void syscall_handle ()
 
void syscall_init ()
 Set up the CPU to handle system calls. More...
 

Detailed Description

System call support.

Definition in file syscall.c.

Macro Definition Documentation

#define MSR_IA32_STAR   0xc0000081

Definition at line 18 of file syscall.c.

Referenced by syscall_init().

#define MSR_IA32_LSTAR   0xc0000082

Definition at line 19 of file syscall.c.

Referenced by syscall_init().

#define MSR_IA32_FMASK   0xc0000084

Definition at line 20 of file syscall.c.

Referenced by syscall_init().

Function Documentation

static void syscall_handle ( )
static

Definition at line 23 of file syscall.c.

Referenced by syscall_init().

void syscall_init ( )

Set up the CPU to handle system calls.

Definition at line 29 of file syscall.c.

Referenced by kmain().