VirtualBox

Changeset 155 in vbox for trunk/src/VBox/Devices/PC/BIOS


Ignore:
Timestamp:
Jan 18, 2007 5:41:16 PM (18 years ago)
Author:
vboxsync
Message:

Hack to allow configurable boot delay (up to 15 seconds).

Location:
trunk/src/VBox/Devices/PC/BIOS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/logo.c

    r1 r155  
    10971097    return;
    10981098}
     1099
     1100
     1101void delay_boot(secs)
     1102  Bit16u secs;
     1103{
     1104    Bit16u i;
     1105
     1106    if (!secs)
     1107        return;
     1108
     1109    // Set PIT to 1ms ticks
     1110    wait_init();
     1111
     1112    printf("Delaying boot for %d seconds:", secs);
     1113    for (i = secs; i > 0; i--)
     1114    {
     1115        printf(" %d", i);
     1116        wait(1000);
     1117    }
     1118    printf("\n");
     1119    // Restore PIT ticks
     1120    wait_uninit();
     1121}
     1122
  • trunk/src/VBox/Devices/PC/BIOS/rombios.c

    r100 r155  
    78187818  if (read_byte(ebda_seg, &EbdaData->uForceBootDrive))
    78197819      bootseq = read_byte(ebda_seg, &EbdaData->uForceBootDrive);
     7820  /* Boot delay hack. */
     7821  if (bseqnr == 1)
     7822      delay_boot((inb_cmos(0x3c) & 0xf0) >> 4); /* Implemented in logo.c */
    78207823#endif /* VBOX */
    78217824
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette