No longer clobbers the lower 16 bit of the partition offset before it is saved.

The boot partition was not likely to be found before.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9749 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-11-03 02:20:06 +00:00
parent 8ba84a800d
commit 74a5be2dbd

View File

@ -227,10 +227,6 @@ bfs_start:
push %ds
pop %es
xor %ax, %ax // set up stack at 0x0000:0x9000
mov %ax, %ss
mov $0x9000, %sp
.code32 // save knowledge from the BFS boot block for later use
.byte 0x67
movb %dl, gBootDriveID - 0x10000
@ -239,6 +235,10 @@ bfs_start:
movl %eax, gBootPartitionOffset - 0x10000
.code16
xor %ax, %ax // set up stack at 0x0000:0x9000
mov %ax, %ss
mov $0x9000, %sp
cli // no interrupts please
call enable_a20 // enable a20 gate