MonkOS  v0.1
A simple 64-bit operating system (x86_64)
exception.h
Go to the documentation of this file.
1 //============================================================================
2 /// @file exception.h
3 /// @brief CPU exceptions.
4 //
5 // Copyright 2016 Brett Vickers.
6 // Use of this source code is governed by a BSD-style license
7 // that can be found in the MonkOS LICENSE file.
8 //============================================================================
9 
10 #pragma once
11 
12 #include <core.h>
13 
14 // CPU exception constants
15 #define EXCEPTION_DIVBYZERO 0x00
16 #define EXCEPTION_DEBUG 0x01
17 #define EXCEPTION_NMI 0x02
18 #define EXCEPTION_BREAKPOINT 0x03
19 #define EXCEPTION_OVERFLOW 0x04
20 #define EXCEPTION_BOUNDS 0x05
21 #define EXCEPTION_INVALID_OPCODE 0x06
22 #define EXCEPTION_NO_DEVICE 0x07
23 #define EXCEPTION_DOUBLE_FAULT 0x08
24 #define EXCEPTION_COPROCESSOR 0x09
25 #define EXCEPTION_INVALID_TSS 0x0a
26 #define EXCEPTION_SEGMENT_NOT_PRESENT 0x0b
27 #define EXCEPTION_STACK_FAULT 0x0c
28 #define EXCEPTION_GENERAL_PROTECTION 0x0d
29 #define EXCEPTION_PAGE_FAULT 0x0e
30 #define EXCEPTION_FPU 0x10
31 #define EXCEPTION_ALIGNMENT 0x11
32 #define EXCEPTION_MACHINE_CHECK 0x12
33 #define EXCEPTION_SIMD 0x13
34 #define EXCEPTION_VIRTUALIZATION 0x14
35 
36 
37 //----------------------------------------------------------------------------
38 // @function exceptions_init
39 /// @brief Initialize all exception handling routines.
40 //----------------------------------------------------------------------------
41 void
void exceptions_init()
Initialize all exception handling routines.
Definition: exception.c:107
Core include file.