forked from KolibriOS/kolibrios
Fix random boot issue: 'Failed to start first app'
Access to BOOT.dev variable was sometimes done with obsolete offset from non-flat-kernel ages. If you are unlucky, the ramdisk is not loaded and launcher app is not started. git-svn-id: svn://kolibrios.org@8086 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
73d12d1c99
commit
d48c9cc35c
@ -11,7 +11,7 @@ $Revision$
|
||||
read_ramdisk:
|
||||
; READ RAMDISK IMAGE FROM HD (only for IDE0, IDE1, IDE2, IDE3)
|
||||
|
||||
cmp byte [BOOT.dev+0x10000], 1
|
||||
cmp byte [BOOT.dev], 1
|
||||
jne no_sys_on_hd.1
|
||||
|
||||
xor ebp, ebp
|
||||
@ -112,7 +112,7 @@ no_sys_on_hd:
|
||||
DEBUGF 1, "K : RD not found\n"
|
||||
.1:
|
||||
; test_to_format_ram_disk (need if not using ram disk)
|
||||
cmp byte [BOOT.dev+0x10000], 3
|
||||
cmp byte [BOOT.dev], 3
|
||||
jne not_format_ram_disk
|
||||
; format_ram_disk
|
||||
mov edi, RAMDISK
|
||||
|
@ -697,7 +697,7 @@ endg
|
||||
call PIT_init
|
||||
|
||||
; Register ramdisk file system
|
||||
cmp byte [BOOT.dev+0x10000], 1
|
||||
cmp byte [BOOT.dev], 1
|
||||
je @f
|
||||
|
||||
mov esi, boot_initramdisk
|
||||
|
Loading…
Reference in New Issue
Block a user