VirtualBox

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


Ignore:
Timestamp:
Jul 10, 2019 8:18:56 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131963
Message:

BIOS: ROM init routine may clobber registers, duh (see bugref:6549).

File:
1 edited

Legend:

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

    r76553 r79655  
    7070}
    7171
     72/* The ROM init routine might trash register. Give the compiler a heads-up. */
     73typedef void (rom_init_rtn)(void);
     74#pragma aux rom_init_rtn modify [ax bx cx dx si di es] loadds;
     75
    7276/* Scan for ROMs in the given range and execute their POST code. */
    7377void rom_scan(uint16_t start_seg, uint16_t end_seg)
     
    8488            DPRINT("Found ROM at segment %04X\n", start_seg);
    8589            if (!rom_checksum((void __far *)rom, rom->num_blks)) {
    86                 void (__far * rom_init)(void);
     90                rom_init_rtn    __far *rom_init;
    8791
    8892                /* Checksum good, initialize ROM. */
Note: See TracChangeset for help on using the changeset viewer.

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