VirtualBox

Changeset 27456 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 17, 2010 4:18:43 PM (15 years ago)
Author:
vboxsync
Message:

BIOS: Do not destroy high word of EBX in int13_harddisk.

File:
1 edited

Legend:

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

    r27177 r27456  
    54045404
    54055405  void
    5406 int13_harddisk(EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
    5407   Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
     5406int13_harddisk(EHBX, EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
     5407  Bit16u EHBX, EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
    54085408{
    54095409  Bit32u lba;
     
    66486648
    66496649  void
    6650 int13_harddisk(EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
    6651   Bit16u EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
     6650int13_harddisk(EHBX, EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS)
     6651  Bit16u EHBX, EHAX, DS, ES, DI, SI, BP, ELDX, BX, DX, CX, AX, IP, CS, FLAGS;
    66526652{
    66536653  Bit8u    drive, num_sectors, sector, head, status, mod;
     
    90919091
    90929092int13_disk:
    9093   ;; int13_harddisk modifies high word of EAX
     9093  ;; int13_harddisk modifies high word of EAX and EBX
    90949094  shr   eax, #16
    90959095  push  ax
     9096  shr   ebx, #16
     9097  push  bx
    90969098  call  _int13_harddisk
     9099  pop   bx
     9100  shl   ebx, #16
    90979101  pop   ax
    90989102  shl   eax, #16
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