chain.c32: force text mode
authorH. Peter Anvin <hpa@zytor.com>
Fri, 18 Dec 2009 23:09:00 +0000 (15:09 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 18 Dec 2009 23:09:00 +0000 (15:09 -0800)
When loading an unknown system, revert to text mode first.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/modules/chain.c

index 2722014..03893c9 100644 (file)
@@ -548,6 +548,9 @@ static void do_boot(void *boot_sector, size_t boot_size,
     /* Tell the shuffler not to muck with this area... */
     syslinux_add_memmap(&mmap, endimage, 0xa0000 - endimage, SMT_RESERVED);
 
+    /* Force text mode */
+    syslinux_force_text_mode();
+
     fputs("Booting...\n", stdout);
     syslinux_shuffle_boot_rm(mlist, mmap, opt.keeppxe, regs);
     error("Chainboot failed!\n");