mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-06 12:59:18 +00:00
Put CPU namespaces in separate files to make cpu.hpp smaller
This commit is contained in:
37
include/cpu/x86/exceptions.hpp
Normal file
37
include/cpu/x86/exceptions.hpp
Normal file
@ -0,0 +1,37 @@
|
||||
#ifndef __FENNIX_KERNEL_CPU_x86_EXCEPTIONS_H__
|
||||
#define __FENNIX_KERNEL_CPU_x86_EXCEPTIONS_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
namespace CPU
|
||||
{
|
||||
namespace x86
|
||||
{
|
||||
enum ISRExceptions
|
||||
{
|
||||
DivideByZero = 0x0,
|
||||
Debug = 0x1,
|
||||
NonMaskableInterrupt = 0x2,
|
||||
Breakpoint = 0x3,
|
||||
Overflow = 0x4,
|
||||
BoundRange = 0x5,
|
||||
InvalidOpcode = 0x6,
|
||||
DeviceNotAvailable = 0x7,
|
||||
DoubleFault = 0x8,
|
||||
CoprocessorSegmentOverrun = 0x9,
|
||||
InvalidTSS = 0xa,
|
||||
SegmentNotPresent = 0xb,
|
||||
StackSegmentFault = 0xc,
|
||||
GeneralProtectionFault = 0xd,
|
||||
PageFault = 0xe,
|
||||
x87FloatingPoint = 0x10,
|
||||
AlignmentCheck = 0x11,
|
||||
MachineCheck = 0x12,
|
||||
SIMDFloatingPoint = 0x13,
|
||||
Virtualization = 0x14,
|
||||
Security = 0x1e
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !__FENNIX_KERNEL_CPU_x86_EXCEPTIONS_H__
|
Reference in New Issue
Block a user