VirtualBox

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


Ignore:
Timestamp:
Mar 17, 2017 11:15:51 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114060
Message:

bios: Use port defintion from VBox/bios.h.

File:
1 edited

Legend:

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

    r66130 r66154  
    2020#include "biosint.h"
    2121#include "inlines.h"
     22#include "VBox/bios.h"
    2223
    2324#if DEBUG_APM
     
    7778};
    7879
    79 #define APM_PORT        0x040f      /* Relocated Bochs power control port, original value of 0x9800 causes potential trouble with PCI resource allocation. */
    80 
    8180/// @todo merge with system.c
    8281#define AX      r.gr.u.r16.ax
     
    196195        switch (CX) {
    197196        case APM_PS_STANDBY:
    198             apm_out_str("Standby", APM_PORT);
     197            apm_out_str("Standby", VBOX_BIOS_SHUTDOWN_PORT);
    199198            break;
    200199        case APM_PS_SUSPEND:
    201             apm_out_str("Suspend", APM_PORT);
     200            apm_out_str("Suspend", VBOX_BIOS_SHUTDOWN_PORT);
    202201            break;
    203202        case APM_PS_OFF:
    204             apm_out_str("Shutdown", APM_PORT);  /* Should not return. */
     203            apm_out_str("Shutdown", VBOX_BIOS_SHUTDOWN_PORT);  /* Should not return. */
    205204            break;
    206205        default:
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