projects
/
bootcensus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Just in case we started from a floppy, turn the motors off when done
[bootcensus]
/
src
/
boot
/
boot2.s
diff --git
a/src/boot/boot2.s
b/src/boot/boot2.s
index
2d4298f
..
8791fda
100644
(file)
--- 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
# 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
mov $0x13, %ax
int $0x10
@@
-304,6
+307,13
@@
wait: in %dx, %al
ret
ret
+motor_off:
+ mov $0x3f2, %dx
+ in %dx, %al
+ and $0xf0, %al
+ out %al, %dx
+ ret
+
logohack:
# copy palette
mov $logo_pal, %esi
logohack:
# copy palette
mov $logo_pal, %esi