1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-09-06 05:54:28 +00:00
CLK/InstructionSets/x86/Interrupts.hpp

40 lines
792 B
C++
Raw Normal View History

//
// Interrupts.hpp
// Clock Signal
//
// Created by Thomas Harte on 06/10/2023.
// Copyright © 2023 Thomas Harte. All rights reserved.
//
2023-10-07 17:31:35 +00:00
#ifndef InstructionSets_x86_Interrupts_h
#define InstructionSets_x86_Interrupts_h
namespace InstructionSet::x86 {
enum Interrupt {
2023-11-14 03:33:46 +00:00
DivideError = 0,
SingleStep = 1,
NMI = 2,
Breakpoint = 3,
Overflow = 4,
BoundRangeExceeded = 5,
InvalidOpcode = 6,
DeviceNotAvailable = 7,
DoubleFault = 8,
CoprocessorSegmentOverrun = 9,
InvalidTSS = 10,
SegmentNotPresent = 11,
StackSegmentFault = 12,
GeneralProtectionFault = 13,
PageFault = 14,
/* 15 is reserved */
FloatingPointException = 16,
AlignmentCheck = 17,
MachineCheck = 18,
};
}
2023-10-07 17:31:35 +00:00
#endif /* InstructionSets_x86_Interrupts_h */