VirtualBox

Changeset 74580 in vbox for trunk/src


Ignore:
Timestamp:
Oct 2, 2018 1:34:18 PM (6 years ago)
Author:
vboxsync
Message:

BIOS: Build 32-bit APM only for 386+ BIOS.

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

Legend:

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

    r69500 r74580  
    3131extern void apm_pm16_entry(void);
    3232#pragma aux apm_pm16_entry "*"
     33
     34#if VBOX_BIOS_CPU >= 80386
    3335extern void apm_pm32_entry(void);
    3436#pragma aux apm_pm32_entry "*"
     37#endif
    3538
    3639/* APM function codes. */
     
    173176        DI = APM_BIOS_SEG_LEN;          /* Data segment length. */
    174177        break;
     178#if VBOX_BIOS_CPU >= 80386
    175179    case APM_32_CONN:
    176180        /// @todo validate device ID
     
    186190        set_esi_hi(APM_BIOS_SEG_LEN);   /* 16-bit code segment length. */
    187191        break;
     192#endif
    188193    case APM_IDLE:
    189194        int_enable();   /* Simply halt the CPU with interrupts enabled. */
  • trunk/src/VBox/Devices/PC/BIOS/apm_pm.asm

    r69500 r74580  
    159159
    160160
     161if VBOX_BIOS_CPU ge 80386
     162
    161163.386
    162164
     
    203205BIOS32          ends
    204206
     207endif           ; 32-bit code
     208
    205209                end
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