git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A Total Overhaul on the Lunaix's Virtual Memory Model (#26)
[lunaix-os.git]
/
lunaix-os
/
arch
/
i386
/
includes
/
sys
/
vectors.h
diff --git
a/lunaix-os/arch/i386/includes/sys/vectors.h
b/lunaix-os/arch/i386/includes/sys/vectors.h
index 7f27542c20a98e7021c871700a8ab27e2e9cfb64..f352148d1c16c420547c4355b627745ee1bdf8fb 100644
(file)
--- a/
lunaix-os/arch/i386/includes/sys/vectors.h
+++ b/
lunaix-os/arch/i386/includes/sys/vectors.h
@@
-3,6
+3,8
@@
// clang-format off
// clang-format off
+#define TOTAL_IV 256
+
#define FAULT_DIVISION_ERROR 0
#define INSTR_DEBUG 1
#define INT_NMI 2
#define FAULT_DIVISION_ERROR 0
#define INSTR_DEBUG 1
#define INT_NMI 2
@@
-26,19
+28,18
@@
#define FAULT_VIRTUALIZATION_EXCEPTION 20
#define FAULT_CONTROL_PROTECTION 21
#define FAULT_VIRTUALIZATION_EXCEPTION 20
#define FAULT_CONTROL_PROTECTION 21
+#define IV_BASE_END 31
+
// LunaixOS related
#define LUNAIX_SYS_PANIC 32
#define LUNAIX_SYS_CALL 33
// LunaixOS related
#define LUNAIX_SYS_PANIC 32
#define LUNAIX_SYS_CALL 33
-#define LUNAIX_SCHED 34
-
-#define EX_INTERRUPT_BEGIN 200
-// Keyboard
-#define PC_KBD_IV 201
-#define AHCI_HBA_IV 202
-#define UART_COM1 203
+// begin allocatable iv resources
+#define IV_EX_BEGIN 50
+#define LUNAIX_SCHED 50
-#define RTC_TIMER_IV 210
+// end allocatable iv resources
+#define IV_EX_END 249
// 来自APIC的中断有着最高的优先级。
// APIC related
// 来自APIC的中断有着最高的优先级。
// APIC related