From 4eb5012a8d34420b1b212ca0730c131ee659d851 Mon Sep 17 00:00:00 2001 From: kieron Date: Wed, 17 May 2017 11:40:52 +0000 Subject: [PATCH] Consts. git-svn-id: https://spexeah.com:8443/svn/Asuro@38 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c --- src/isr.pas | 2 +- src/system.pas | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/isr.pas b/src/isr.pas index c83c4723..71af0a99 100644 --- a/src/isr.pas +++ b/src/isr.pas @@ -25,7 +25,7 @@ end; procedure init(); begin - idt.set_gate(0, uint32(@isr0), $08, $8E); + idt.set_gate(0, uint32(@isr0), $08, ISR_RING_0); end; end. \ No newline at end of file diff --git a/src/system.pas b/src/system.pas index f29fd1fa..2b77946b 100644 --- a/src/system.pas +++ b/src/system.pas @@ -2,6 +2,12 @@ unit system; interface +const + ISR_RING_0 = $8E; + ISR_RING_1 = $AE; + ISR_RING_2 = $CE; + ISR_RING_3 = $EE; + type //internal types cardinal = 0..$FFFFFFFF;