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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user