diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-07-26 23:47:26 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-07-26 23:47:26 -0400 |
commit | cadaf0e35d4530a0aa3f3100c3c0e5c96d9f0556 (patch) | |
tree | e87fca3a157363d1ca064258a44704dd1a289305 /src/boot.c | |
parent | 2641186e7650d1dbe9249f57fe005581f31da402 (diff) | |
download | seabios-cadaf0e35d4530a0aa3f3100c3c0e5c96d9f0556.zip seabios-cadaf0e35d4530a0aa3f3100c3c0e5c96d9f0556.tar.gz seabios-cadaf0e35d4530a0aa3f3100c3c0e5c96d9f0556.tar.bz2 |
Be sure to disable bootsplash on all BIOS boot cases.
Disable the bootsplash on cbfs payload exec, and if something hooks
int19.
Also, be sure to only disable the bootsplash (revert to text mode)
once.
Diffstat (limited to 'src/boot.c')
-rw-r--r-- | src/boot.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,6 +1,6 @@ // Code to load disk image and start system boot. // -// Copyright (C) 2008 Kevin O'Connor <kevin@koconnor.net> +// Copyright (C) 2008-2010 Kevin O'Connor <kevin@koconnor.net> // Copyright (C) 2002 MandrakeSoft S.A. // // This file may be distributed under the terms of the GNU LGPLv3 license. @@ -343,11 +343,10 @@ boot_prep(void) static void call_boot_entry(u16 bootseg, u16 bootip, u8 bootdrv) { - dprintf(1, "Booting from %04x:%04x\n", bootseg, bootip); - /* Go back to text, the OS might expect it... (Can't do this any later) */ disable_bootsplash(); + dprintf(1, "Booting from %04x:%04x\n", bootseg, bootip); struct bregs br; memset(&br, 0, sizeof(br)); br.flags = F_IF; @@ -431,6 +430,7 @@ boot_cbfs(struct ipl_entry_s *ie) return; if (count--) continue; + disable_bootsplash(); cbfs_run_payload(file); } } @@ -462,7 +462,7 @@ do_boot(u16 seq_nr) printf("Booting from %s...\n" , strtcpy(desc, ie->description, ARRAY_SIZE(desc))); - switch(ie->type) { + switch (ie->type) { case IPL_TYPE_FLOPPY: boot_disk(0x00, IPL.checkfloppysig); break; |