PatchworkOS  dbbdc99
A non-POSIX operating system.
Loading...
Searching...
No Matches
interrupt.c File Reference
Include dependency graph for interrupt.c:

Go to the source code of this file.

Functions

static void exception_handle_user (interrupt_frame_t *frame, const char *note)
 
static uint64_t exception_grow_stack (thread_t *thread, uintptr_t faultAddr, stack_pointer_t *stack, pml_flags_t flags)
 
static void exception_kernel_page_fault_handler (interrupt_frame_t *frame)
 
static void exception_user_page_fault_handler (interrupt_frame_t *frame)
 
static void exception_handler (interrupt_frame_t *frame)
 
void interrupt_handler (interrupt_frame_t *frame)
 Handles CPU interrupts.
 

Function Documentation

◆ exception_handle_user()

static void exception_handle_user ( interrupt_frame_t frame,
const char *  note 
)
static

Definition at line 23 of file interrupt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exception_grow_stack()

static uint64_t exception_grow_stack ( thread_t thread,
uintptr_t  faultAddr,
stack_pointer_t stack,
pml_flags_t  flags 
)
static

Definition at line 35 of file interrupt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exception_kernel_page_fault_handler()

static void exception_kernel_page_fault_handler ( interrupt_frame_t frame)
static

Definition at line 57 of file interrupt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exception_user_page_fault_handler()

static void exception_user_page_fault_handler ( interrupt_frame_t frame)
static

Definition at line 99 of file interrupt.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exception_handler()

static void exception_handler ( interrupt_frame_t frame)
static
Todo:
Handle NMIs properly.

Definition at line 137 of file interrupt.c.

Here is the call graph for this function:
Here is the caller graph for this function: