aboutsummaryrefslogtreecommitdiffstats
path: root/src/post.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-02-23 21:33:36 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-02-23 21:33:36 -0500
commitf465e1ec1b01826100c92b890487a2ab09bfe2c1 (patch)
tree2eb7849ea812e124dc7c44f6a8bb06a6be084d66 /src/post.c
parent3be89a1a0bf01295e0fcf6b983ab7388a47e4d0c (diff)
downloadseabios-f465e1ec1b01826100c92b890487a2ab09bfe2c1.tar.gz
Minor - introduce numeric defines for the IVT offset of hw irqs.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/post.c')
-rw-r--r--src/post.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post.c b/src/post.c
index 44bb0b0f..4d3262fc 100644
--- a/src/post.c
+++ b/src/post.c
@@ -47,9 +47,9 @@ ivt_init(void)
SET_IVT(i, FUNC16(entry_iret_official));
// Initialize all hw vectors to a default hw handler.
- for (i=0x08; i<=0x0f; i++)
+ for (i=BIOS_HWIRQ0_VECTOR; i<BIOS_HWIRQ0_VECTOR+8; i++)
SET_IVT(i, FUNC16(entry_hwpic1));
- for (i=0x70; i<=0x77; i++)
+ for (i=BIOS_HWIRQ8_VECTOR; i<BIOS_HWIRQ8_VECTOR+8; i++)
SET_IVT(i, FUNC16(entry_hwpic2));
// Initialize software handlers.