VirtualBox

Changeset 66154 in vbox


Ignore:
Timestamp:
Mar 17, 2017 11:15:51 AM (8 years ago)
Author:
vboxsync
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/bios.h

    r66149 r66154  
    2929#define ___VBox_bios_h
    3030
    31 #include <VBox/cdefs.h>
    32 
    3331/** The BIOS shutdown port.
    3432 * You write "Shutdown" byte by byte to shutdown the VM.
  • 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.

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