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