Changeset 66149 in vbox
- Timestamp:
- Mar 16, 2017 10:41:19 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 114055
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.kmk
r65433 r66149 1809 1809 $(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"' 1810 1810 $(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h 1811 $(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h 1811 1812 $(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h 1812 1813 $(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h -
trunk/src/VBox/ValidationKit/bootsectors/bootsector-pae.asm
r66145 r66149 27 27 %include "iprt/asmdefs.mac" 28 28 %include "iprt/x86.mac" 29 %include "VBox/bios.mac" 29 30 30 31 … … 34 35 %define PD_ADDR 0xa000 35 36 36 ;; The magic shutdown I/O port37 %define SHUTDOWN_PORT 0x040f38 37 39 38 BITS 16 … … 117 116 ; 118 117 mov bl, 64 119 mov dx, SHUTDOWN_PORT 118 mov dx, VBOX_BIOS_SHUTDOWN_PORT 119 mov ax, VBOX_BIOS_OLD_SHUTDOWN_PORT 120 120 retry: 121 121 mov ecx, 8 122 122 mov esi, (szShutdown - start) + BS_ADDR 123 123 rep outsb 124 xchg dx, ax ; alternate between the new (VBox) and old (Bochs) ports. 124 125 dec bl 125 126 jnz retry -
trunk/src/VBox/ValidationKit/bootsectors/bootsector-shutdown.asm
r66145 r66149 25 25 ; 26 26 27 ;; The magic shutdown I/O port 28 SHUTDOWN_PORT equ 040fh 27 %include "VBox/bios.mac" 28 29 29 30 30 BITS 16 … … 39 39 40 40 ; 41 ; Bochs shutdown request - write "Shutdown" byte by byte to shutdown port.41 ; VBox/Bochs shutdown request - write "Shutdown" byte by byte to shutdown port. 42 42 ; 43 43 mov cx, 64 44 mov dx, SHUTDOWN_PORT 44 mov dx, VBOX_BIOS_SHUTDOWN_PORT 45 mov bx, VBOX_BIOS_OLD_SHUTDOWN_PORT 45 46 retry: 46 47 mov al, 'S' … … 60 61 mov al, 'n' 61 62 out dx, al 63 xchg dx, bx ; alternate between the new (VBox) and old (Bochs) ports. 62 64 loop retry 63 65 -
trunk/src/VBox/ValidationKit/bootsectors/bootsector2-common-init-code.mac
r66145 r66149 70 70 %include "bootsector2-structures.mac" 71 71 %include "bootsector2-common-macros-1.mac" 72 %include "VBox/bios.mac" 72 73 73 74 … … 75 76 ;* Defined Constants And Macros * 76 77 ;******************************************************************************* 77 78 ;; The magic shutdown I/O port79 %define SHUTDOWN_PORT 0x040f80 81 78 ;; @name Static Memory Allocation 82 79 ; @{ … … 614 611 cli 615 612 mov bl, 64 616 mov dx, SHUTDOWN_PORT617 613 mov ax, ss 618 614 mov ds, ax 615 mov dx, VBOX_BIOS_SHUTDOWN_PORT 616 mov ax, VBOX_BIOS_OLD_SHUTDOWN_PORT 619 617 .retry: 620 618 mov ecx, 8 621 619 mov esi, .s_szShutdown 622 620 rep outsb 621 xchg dx, ax ; alternate between the new (VBox) and old (Bochs) ports. 623 622 dec bl 624 623 jnz .retry -
trunk/src/VBox/ValidationKit/bootsectors/bootsector2-common-routines-template-1.mac
r66145 r66149 26 26 27 27 %include "bootsector2-template-header.mac" 28 %include "VBox/bios.mac" 29 28 30 ALIGNCODE(32) 29 31 GLOBALNAME TMPL_NM_CMN(g_szMode) 30 32 db TMPL_MODE_STR, 0 31 33 32 ;; The magic shutdown I/O port33 %define SHUTDOWN_PORT 0x040f34 34 35 35 ;; … … 46 46 cli 47 47 mov bl, 64 48 mov dx, SHUTDOWN_PORT49 48 mov ax, ss 50 49 mov ds, ax 50 mov dx, VBOX_BIOS_SHUTDOWN_PORT 51 mov ax, VBOX_BIOS_OLD_SHUTDOWN_PORT 51 52 .retry: 52 53 mov ecx, 8 53 54 mov esi, .s_szShutdown 54 55 rep outsb 56 xchg dx, ax ; alternate between the new (VBox) and old (Bochs) ports. 55 57 dec bl 56 58 jnz .retry -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-Shutdown.asm
r66145 r66149 26 26 27 27 %include "bs3kit-template-header.mac" 28 %include "VBox/bios.mac" 28 29 29 30 BS3_EXTERN_CMN Bs3Panic … … 31 32 BS3_PROC_BEGIN_CMN Bs3Shutdown, BS3_PBC_HYBRID_0_ARGS 32 33 cli 33 mov bl, 6434 mov dx, SHUTDOWN_PORT35 34 %ifdef TMPL_16BIT 36 35 mov ax, cs 37 36 mov ds, ax 38 37 %endif 38 mov bl, 64 39 mov dx, VBOX_BIOS_SHUTDOWN_PORT 40 mov ax, VBOX_BIOS_OLD_SHUTDOWN_PORT 39 41 .retry: 40 42 mov ecx, 8 41 43 mov esi, .s_szShutdown 42 44 rep outsb 45 xchg ax, dx ; alternate between the new (VBox) and old (Bochs) ports. 43 46 dec bl 44 47 jnz .retry -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.mac
r66145 r66149 1708 1708 ;; @} 1709 1709 1710 ;; The magic shutdown I/O port1711 %define SHUTDOWN_PORT 0x040f1712 1713 1710 %endif 1714 1711
Note:
See TracChangeset
for help on using the changeset viewer.