summaryrefslogtreecommitdiff
path: root/Kernel/Boot/boot.asm
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-27 00:34:36 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-27 00:40:42 +0200
commit42c88b5f2d0f3bd2b63addfc98d8f135e7b9d562 (patch)
treeb15cde7cbd80826b295920290112d58069055c8a /Kernel/Boot/boot.asm
parent3db8d7ae1a4e294427d06c0532d9bd3b3c19ad13 (diff)
downloadserenity-42c88b5f2d0f3bd2b63addfc98d8f135e7b9d562.zip
Turn off the floppy drive after the boot loader is finished.
Diffstat (limited to 'Kernel/Boot/boot.asm')
-rwxr-xr-xKernel/Boot/boot.asm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/Boot/boot.asm b/Kernel/Boot/boot.asm
index 261ae26c09..d759757b28 100755
--- a/Kernel/Boot/boot.asm
+++ b/Kernel/Boot/boot.asm
@@ -56,6 +56,11 @@ boot:
call durk
+ ; Turn off the floppy motor.
+ mov dx, 0x3f2
+ xor al, al
+ out dx, al
+
lgdt [cs:test_gdt_ptr]
mov eax, cr0