PatchworkOS
Loading...
Searching...
No Matches
exception.c File Reference
#include <kernel/acpi/aml/exception.h>
#include <kernel/log/log.h>
#include <kernel/sched/thread.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Data Structures

struct  aml_exception_info_t
 

Functions

const char * aml_exception_to_string (aml_exception_t code)
 Converts an AML exception code to a string.
 
uint64_t aml_exception_register (aml_exception_handler_t handler)
 Registers an AML exception handler.
 
void aml_exception_unregister (aml_exception_handler_t handler)
 Unregisters an AML exception handler.
 
void aml_exception_raise (aml_state_t *state, aml_exception_t code, const char *function)
 Raises an AML exception.
 

Variables

static const aml_exception_info_t exceptionTable []
 
static aml_exception_handler_thandlers = NULL
 
static uint64_t handlerCount = 0
 

Variable Documentation

◆ exceptionTable

const aml_exception_info_t exceptionTable[]
static

Definition at line 16 of file exception.c.

Referenced by aml_exception_to_string().

◆ handlerCount

uint64_t handlerCount = 0
static

◆ handlers

aml_exception_handler_t* handlers = NULL
static