projects
/
bootcensus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
16ffb9d
)
Just in case we started from a floppy, turn the motors off when done
author
John Tsiombikas
<nuclear@member.fsf.org>
Sat, 21 Apr 2018 01:30:59 +0000
(
04:30
+0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Sat, 21 Apr 2018 01:30:59 +0000
(
04:30
+0300)
loading
src/boot/boot2.s
patch
|
blob
|
history
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