~ubuntu-branches/ubuntu/saucy/seabios/saucy-proposed

« back to all changes in this revision

Viewing changes to src/boot.c

  • Committer: Bazaar Package Importer
  • Author(s): Vagrant Cascadian
  • Date: 2010-11-26 17:54:44 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101126175444-rpdeja25wf6fjycx
Tags: 0.6.1.2-1
* New upstream version from git tag. 
  - Fixes virtio-blk failure after reboot (Closes: #604735).
* Update debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// Code to load disk image and start system boot.
2
2
//
3
 
// Copyright (C) 2008  Kevin O'Connor <kevin@koconnor.net>
 
3
// Copyright (C) 2008-2010  Kevin O'Connor <kevin@koconnor.net>
4
4
// Copyright (C) 2002  MandrakeSoft S.A.
5
5
//
6
6
// This file may be distributed under the terms of the GNU LGPLv3 license.
227
227
 
228
228
    printf("Press F12 for boot menu.\n\n");
229
229
 
 
230
    enable_bootsplash();
230
231
    int scan_code = get_keystroke(CONFIG_BOOTMENU_WAIT);
 
232
    disable_bootsplash();
231
233
    if (scan_code != 0x86)
232
234
        /* not F12 */
233
235
        return;
344
346
call_boot_entry(u16 bootseg, u16 bootip, u8 bootdrv)
345
347
{
346
348
    dprintf(1, "Booting from %04x:%04x\n", bootseg, bootip);
347
 
 
348
 
    /* Go back to text, the OS might expect it... (Can't do this any later) */
349
 
    disable_bootsplash();
350
 
 
351
349
    struct bregs br;
352
350
    memset(&br, 0, sizeof(br));
353
351
    br.flags = F_IF;
462
460
    printf("Booting from %s...\n"
463
461
           , strtcpy(desc, ie->description, ARRAY_SIZE(desc)));
464
462
 
465
 
    switch(ie->type) {
 
463
    switch (ie->type) {
466
464
    case IPL_TYPE_FLOPPY:
467
465
        boot_disk(0x00, IPL.checkfloppysig);
468
466
        break;