From 0fa4cfc6571c3965a4777e2da8d47a84ca08f555 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sat, 21 Apr 2018 04:30:59 +0300 Subject: [PATCH] Just in case we started from a floppy, turn the motors off when done loading --- src/boot/boot2.s | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/boot/boot2.s b/src/boot/boot2.s index 2d4298f..8791fda 100644 --- a/src/boot/boot2.s +++ b/src/boot/boot2.s @@ -21,6 +21,9 @@ # make sure any BIOS call didn't re-enable interrupts cli + # just in case we were loaded from floppy, turn all floppy motors off + call motor_off + mov $0x13, %ax int $0x10 @@ -304,6 +307,13 @@ wait: in %dx, %al ret +motor_off: + mov $0x3f2, %dx + in %dx, %al + and $0xf0, %al + out %al, %dx + ret + logohack: # copy palette mov $logo_pal, %esi -- 1.7.10.4