mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
interrupt: disk IPL and INTERRUPT_IDTOVECTOR macro
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#ifdef __x86_64__
|
#ifdef __x86_64__
|
||||||
#define MAX_ISR_COUNT 256
|
#define MAX_ISR_COUNT 256
|
||||||
|
#define INTERRUPT_IDTOVECTOR(id) ((id) & 0xffffffff)
|
||||||
#else
|
#else
|
||||||
#error Unsupported architecture!
|
#error Unsupported architecture!
|
||||||
#endif
|
#endif
|
||||||
@@ -15,6 +16,7 @@
|
|||||||
#define IPL_MAX 0
|
#define IPL_MAX 0
|
||||||
#define IPL_TIMER 1
|
#define IPL_TIMER 1
|
||||||
#define IPL_KEYBOARD 2
|
#define IPL_KEYBOARD 2
|
||||||
|
#define IPL_DISK 500
|
||||||
#define IPL_DPC 900
|
#define IPL_DPC 900
|
||||||
#define IPL_NORMAL 1000
|
#define IPL_NORMAL 1000
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user