Actually, one byte is enough for gBIOSDriveID - it only has to store %dl, not %dx.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7249 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-04-19 23:31:53 +00:00
parent 502a70f884
commit f52302c408
+2 -2
View File
@@ -76,7 +76,7 @@ _protected_code_segment:
mov $0x10000, %ebp // setup new stack
mov %ebp, %esp
movw %dx, gBootDriveID
movb %dl, gBootDriveID
// save boot device
call _start
@@ -152,6 +152,6 @@ gdt_descriptor:
.globl gBootDriveID
gBootDriveID:
.word 0
.byte 0
.org 1024