X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Fboot%2Fboot2.s;h=8791fda1ec50fcc72ebb44d510829338007f9f86;hp=2d4298fd442cdf98ca5a3bb1790f45b7b0d0c337;hb=0fa4cfc6571c3965a4777e2da8d47a84ca08f555;hpb=16ffb9d5c70a64285cd84b3599698ee0297d1d0c 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