aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2009-07-18 17:03:29 +0200
committerSebastian Herbszt <herbszt@gmx.de>2009-07-18 17:03:29 +0200
commit70b2ea4a4f78f0ae0aa5d48f097824692fb93800 (patch)
tree88a959c36caf8d0c199cf68c6064da9ff3cde1f3
parent20a07f04211367537c99b4affa126f9dd519fddb (diff)
downloadlwip-70b2ea4a4f78f0ae0aa5d48f097824692fb93800.tar.gz
lwip-70b2ea4a4f78f0ae0aa5d48f097824692fb93800.tar.xz
lwip-70b2ea4a4f78f0ae0aa5d48f097824692fb93800.zip
gfxboot: only call gfxboot core if labels are specified
Only call gfxboot core if labels are specified in the config file. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
-rw-r--r--modules/gfxboot.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/gfxboot.asm b/modules/gfxboot.asm
index 9555d26f..2269d1c0 100644
--- a/modules/gfxboot.asm
+++ b/modules/gfxboot.asm
@@ -144,7 +144,15 @@ got_config_file:
push cs
pop es
call parse_config
+ cmp word [label_cnt],0
+ ja labels_defined
+ mov bx,msg_no_labels_defined
+ mov ax,2
+ int 22h
+ ret
+
+labels_defined:
; get_gfx_file
mov ax,cs
add ax,2000h
@@ -899,6 +907,7 @@ msg_bootlogo_toobig db 'bootlogo file too big',0dh,0ah,0
msg_pxelinux db 'pxelinux is not supported',0dh,0ah,0
msg_unknown_file_size db 'unknown file size',0dh,0ah,0
msg_not_found db ' not found',0dh,0ah,0
+msg_no_labels_defined db 'No labels defined in config file',0dh,0ah,0
msg_space db ' ',0
msg_crlf db 0dh,0ah,0