aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-12-18 15:09:00 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-12-18 15:09:00 -0800
commit56b3575ff7c6392ef5721b408685933eb0676b40 (patch)
tree04c845b671d8ce596befa651fa4691173ce165f5
parenta7615704a4a4c76ef794c4758a60f6a539d603ce (diff)
downloadsyslinux.git-56b3575ff7c6392ef5721b408685933eb0676b40.tar.gz
syslinux.git-56b3575ff7c6392ef5721b408685933eb0676b40.tar.xz
syslinux.git-56b3575ff7c6392ef5721b408685933eb0676b40.zip
chain.c32: force text mode
When loading an unknown system, revert to text mode first. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/modules/chain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 27220143..03893c96 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -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");