Reduce stack usage for ISRs; minor fixes.
[seabios.git] / src / clock.c
index 8c4f301b4475443b558f8600e020692d801e2894..c653c1f3bc38062e9d14c8393b4f422252d0c303 100644 (file)
@@ -250,16 +250,17 @@ handle_1a(struct bregs *regs)
 
 // User Timer Tick
 void VISIBLE16
-handle_1c(struct bregs *regs)
+handle_1c()
 {
     //debug_enter(regs);
 }
 
 // INT 08h System Timer ISR Entry Point
 void VISIBLE16
-handle_08(struct bregs *regs)
+handle_08()
 {
-//    debug_isr(regs);
+    //debug_isr();
+    irq_enable();
 
     floppy_tick();
 
@@ -279,6 +280,8 @@ handle_08(struct bregs *regs)
     memset(&br, 0, sizeof(br));
     call16_int(0x1c, &br);
 
+    irq_disable();
+
     eoi_master_pic();
 }
 
@@ -338,9 +341,9 @@ handle_1583(struct bregs *regs)
 
 // int70h: IRQ8 - CMOS RTC
 void VISIBLE16
-handle_70(struct bregs *regs)
+handle_70()
 {
-    debug_isr(regs);
+    debug_isr();
 
     // Check which modes are enabled and have occurred.
     u8 registerB = inb_cmos(CMOS_STATUS_B);