Bootcode: fixed check on loader block correctness

git-svn-id: svn://kolibrios.org@140 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2006-08-28 13:47:50 +00:00
parent d3ae4b4e07
commit bb515acb25
1 changed files with 2 additions and 2 deletions

View File

@ -448,8 +448,8 @@ cfgmanager:
; d) preboot_device = from what boot? ; d) preboot_device = from what boot?
mov di, preboot_graph-0x10000 mov di, preboot_graph-0x10000
; check bootloader block ; check bootloader block
cmp [.loader_block-0x10000], 0 cmp [.loader_block-0x10000], 1
jz .noloaderblock jnz .noloaderblock
les bx, [.loader_block-0x10000] les bx, [.loader_block-0x10000]
cmp byte [es:bx], 1 cmp byte [es:bx], 1
mov si, loader_block_error-0x10000 mov si, loader_block_error-0x10000