changeset 3026:03f0c5170e9d

* include/pcmb.inc: To allow the BIOS timer interrupt handler to switch off the drive, we need to make sure interrupts are enabled.
author sergeig
date Sun, 20 Mar 2011 15:27:19 +0000
parents 0092797d62f6
children 4df50cbc6176
files packages/hal/i386/pcmb/current/ChangeLog packages/hal/i386/pcmb/current/include/pcmb.inc
diffstat 2 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/i386/pcmb/current/ChangeLog
+++ b/packages/hal/i386/pcmb/current/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-17  Horst Schirmeier  <horst@schirmeier.com>
+
+	* include/pcmb.inc: To allow the BIOS timer interrupt handler to
+	switch off the drive, we need to make sure interrupts are enabled.
+
 2006-06-02  Nick Garnett  <nickg@ecoscentric.com>
 
 	* include/pcmb_io.h (HAL_PCI_TRANSLATE_INTERRUPT): Fixed PCI
--- a/packages/hal/i386/pcmb/current/include/pcmb.inc
+++ b/packages/hal/i386/pcmb/current/include/pcmb.inc
@@ -214,9 +214,12 @@
 _endload:
 1:
 
-	/* Lets be nice and wait for the diskette drive motor to go off
-         * before continuing. */
+	/* Let's be nice and wait for the diskette drive motor to go off
+	 * before continuing.  To allow the BIOS timer interrupt handler
+	 * to switch off the drive, we need to make sure interrupts are
+	 * enabled. */
 	
+	sti
 	movw	$0x40, %ax
 	movw	%ax, %es
 	movl	$0x40, %ebx