patch-2.4.21 linux-2.4.21/arch/x86_64/boot/bootsect.S

Next file: linux-2.4.21/arch/x86_64/boot/compressed/misc.c
Previous file: linux-2.4.21/arch/x86_64/Makefile
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/arch/x86_64/boot/bootsect.S linux-2.4.21/arch/x86_64/boot/bootsect.S
@@ -395,9 +395,9 @@
 # NOTE: Doesn't save %ax or %dx; do it yourself if you need to.
 
 kill_motor:
-	movw	$0x3f2, %dx
-	xorb	%al, %al
-	outb	%al, %dx
+	xorw	%ax, %ax		# reset FDC
+	xorb	%dl, %dl
+	int	$0x13
 	ret
 
 sectors:	.word 0

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)