From bb515acb25a87ba2062aee522174d88de11c3edc Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Mon, 28 Aug 2006 13:47:50 +0000 Subject: [PATCH] Bootcode: fixed check on loader block correctness git-svn-id: svn://kolibrios.org@140 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/boot/bootcode.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/boot/bootcode.inc b/kernel/trunk/boot/bootcode.inc index 37d35e9a1..ea95773d0 100644 --- a/kernel/trunk/boot/bootcode.inc +++ b/kernel/trunk/boot/bootcode.inc @@ -448,8 +448,8 @@ cfgmanager: ; d) preboot_device = from what boot? mov di, preboot_graph-0x10000 ; check bootloader block - cmp [.loader_block-0x10000], 0 - jz .noloaderblock + cmp [.loader_block-0x10000], 1 + jnz .noloaderblock les bx, [.loader_block-0x10000] cmp byte [es:bx], 1 mov si, loader_block_error-0x10000