VirtualBox

Ignore:
Timestamp:
Mar 16, 2017 10:41:19 PM (8 years ago)
Author:
vboxsync
Message:

Added VBox/bios.h and VBox/bios.mac (generated) and changed the bootsector code to try both the VBox and Bochs shutdown ports.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-Shutdown.asm

    r66145 r66149  
    2626
    2727%include "bs3kit-template-header.mac"
     28%include "VBox/bios.mac"
    2829
    2930BS3_EXTERN_CMN Bs3Panic
     
    3132BS3_PROC_BEGIN_CMN Bs3Shutdown, BS3_PBC_HYBRID_0_ARGS
    3233        cli
    33         mov     bl, 64
    34         mov     dx, SHUTDOWN_PORT
    3534%ifdef TMPL_16BIT
    3635        mov     ax, cs
    3736        mov     ds, ax
    3837%endif
     38        mov     bl, 64
     39        mov     dx, VBOX_BIOS_SHUTDOWN_PORT
     40        mov     ax, VBOX_BIOS_OLD_SHUTDOWN_PORT
    3941.retry:
    4042        mov     ecx, 8
    4143        mov     esi, .s_szShutdown
    4244        rep outsb
     45        xchg    ax, dx                  ; alternate between the new (VBox) and old (Bochs) ports.
    4346        dec     bl
    4447        jnz     .retry
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