diff --git a/kernel/main.c b/kernel/main.c index 98cb798..f59593f 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -244,7 +244,7 @@ STATIC void setup_int_vectors(void) for (i = 0x23; i <= 0x3f; i++) setvec(i, empty_handler); for (pvec = vectors; pvec < vectors + (sizeof vectors/sizeof *pvec); pvec++) - setvec(pvec->intno, MK_FP(FP_SEG(empty_handler), pvec->handleroff)); + setvec(pvec->intno, (intvec)MK_FP(FP_SEG(empty_handler), pvec->handleroff)); pokeb(0, 0x30 * 4, 0xea); pokel(0, 0x30 * 4 + 1, (ULONG)cpm_entry); }