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

CPU exceptions. More...

#include <core.h>

Go to the source code of this file.

Macros

#define EXCEPTION_DIVBYZERO   0x00
 
#define EXCEPTION_DEBUG   0x01
 
#define EXCEPTION_NMI   0x02
 
#define EXCEPTION_BREAKPOINT   0x03
 
#define EXCEPTION_OVERFLOW   0x04
 
#define EXCEPTION_BOUNDS   0x05
 
#define EXCEPTION_INVALID_OPCODE   0x06
 
#define EXCEPTION_NO_DEVICE   0x07
 
#define EXCEPTION_DOUBLE_FAULT   0x08
 
#define EXCEPTION_COPROCESSOR   0x09
 
#define EXCEPTION_INVALID_TSS   0x0a
 
#define EXCEPTION_SEGMENT_NOT_PRESENT   0x0b
 
#define EXCEPTION_STACK_FAULT   0x0c
 
#define EXCEPTION_GENERAL_PROTECTION   0x0d
 
#define EXCEPTION_PAGE_FAULT   0x0e
 
#define EXCEPTION_FPU   0x10
 
#define EXCEPTION_ALIGNMENT   0x11
 
#define EXCEPTION_MACHINE_CHECK   0x12
 
#define EXCEPTION_SIMD   0x13
 
#define EXCEPTION_VIRTUALIZATION   0x14
 

Functions

void exceptions_init ()
 Initialize all exception handling routines. More...
 

Detailed Description

CPU exceptions.

Definition in file exception.h.

Macro Definition Documentation

#define EXCEPTION_DIVBYZERO   0x00

Definition at line 15 of file exception.h.

#define EXCEPTION_DEBUG   0x01

Definition at line 16 of file exception.h.

#define EXCEPTION_NMI   0x02

Definition at line 17 of file exception.h.

#define EXCEPTION_BREAKPOINT   0x03

Definition at line 18 of file exception.h.

Referenced by exceptions_init().

#define EXCEPTION_OVERFLOW   0x04

Definition at line 19 of file exception.h.

#define EXCEPTION_BOUNDS   0x05

Definition at line 20 of file exception.h.

#define EXCEPTION_INVALID_OPCODE   0x06

Definition at line 21 of file exception.h.

#define EXCEPTION_NO_DEVICE   0x07

Definition at line 22 of file exception.h.

#define EXCEPTION_DOUBLE_FAULT   0x08

Definition at line 23 of file exception.h.

#define EXCEPTION_COPROCESSOR   0x09

Definition at line 24 of file exception.h.

#define EXCEPTION_INVALID_TSS   0x0a

Definition at line 25 of file exception.h.

#define EXCEPTION_SEGMENT_NOT_PRESENT   0x0b

Definition at line 26 of file exception.h.

#define EXCEPTION_STACK_FAULT   0x0c

Definition at line 27 of file exception.h.

#define EXCEPTION_GENERAL_PROTECTION   0x0d

Definition at line 28 of file exception.h.

#define EXCEPTION_PAGE_FAULT   0x0e

Definition at line 29 of file exception.h.

#define EXCEPTION_FPU   0x10

Definition at line 30 of file exception.h.

#define EXCEPTION_ALIGNMENT   0x11

Definition at line 31 of file exception.h.

#define EXCEPTION_MACHINE_CHECK   0x12

Definition at line 32 of file exception.h.

#define EXCEPTION_SIMD   0x13

Definition at line 33 of file exception.h.

#define EXCEPTION_VIRTUALIZATION   0x14

Definition at line 34 of file exception.h.

Function Documentation

void exceptions_init ( )

Initialize all exception handling routines.

Definition at line 107 of file exception.c.

Referenced by kmain().