VirtualBox

Changeset 40960 in vbox


Ignore:
Timestamp:
Apr 17, 2012 1:54:33 PM (13 years ago)
Author:
vboxsync
Message:

BIOS: Set text mode if not displaying logo.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS-new/bios.c

    r39366 r40960  
    137137}
    138138
     139/* Set video mode. */
     140void set_mode(uint8_t mode);
     141#pragma aux set_mode =      \
     142    "mov    ah, 0"          \
     143    "int    10h"            \
     144    parm [al] modify [ax];
     145
    139146//@todo: restore
    140147//#undef VBOX
     
    154161    write_word(0x0040,0x0072, 0);
    155162    if (warm_boot == 0x1234)
     163    {
     164        /* Only set text mode. */
     165        set_mode(3);
    156166        return;
     167    }
    157168    /* show graphical logo */
    158169    show_logo();
  • trunk/src/VBox/Devices/PC/BIOS/rombios.c

    r40754 r40960  
    20192019  Bit16u warm_boot = read_word(0x0040,0x0072);
    20202020  write_word(0x0040,0x0072, 0);
    2021   if (warm_boot == 0x1234)
     2021  if (warm_boot == 0x1234) {
     2022    /* set text mode */
     2023    set_mode(3);
    20222024    return;
    2023   /* show graphical logo */
    2024   show_logo();
     2025  } else
     2026    /* show graphical logo */
     2027    show_logo();
    20252028#else /* !VBOX */
    20262029  printf(BX_APPNAME" BIOS - build: %s\n%s\nOptions: ",
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