aboutsummaryrefslogtreecommitdiff
path: root/src/floppy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/floppy.c')
-rw-r--r--src/floppy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/floppy.c b/src/floppy.c
index 4f7d4af..c880478 100644
--- a/src/floppy.c
+++ b/src/floppy.c
@@ -11,7 +11,7 @@
#include "biosvar.h" // SET_BDA
#include "util.h" // irq_disable
#include "cmos.h" // inb_cmos
-#include "pic.h" // unmask_pic1
+#include "pic.h" // eoi_pic1
#include "bregs.h" // struct bregs
#define BX_FLOPPY_ON_CNT 37 /* 2 seconds */
@@ -74,8 +74,7 @@ floppy_drive_setup()
outb(0x02, PORT_DMA1_MASK_REG);
- // Enable IRQ6 (handle_0e)
- unmask_pic1(PIC1_IRQ6);
+ enable_hwirq(6, entry_0e);
}
static inline void