VirtualBox

Changeset 21618 in vbox


Ignore:
Timestamp:
Jul 15, 2009 3:42:52 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50140
Message:

BIOS: Stop PCI BIOS from destroying edx/ecx. Fixes IBMIDECD.SYS driver.

File:
1 edited

Legend:

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

    r21206 r21618  
    1003910039  push esi
    1004010040  push edi
     10041  push edx
    1004110042  cmp al, #0x02
    1004210043  jne pci_real_f03
     
    1008110082  cmp ebx, #0x10000
    1008210083  jne pci_real_devloop2
    10083   mov dx, cx
    10084   shr ecx, #16
    1008510084  mov ax, #0x8603
    1008610085  jmp pci_real_fail
     
    1019610195  mov ah, #0x81
    1019710196pci_real_fail:
     10197  pop edx
    1019810198  pop edi
    1019910199  pop esi
     
    1020210202pci_real_ok:
    1020310203  xor ah, ah
     10204  pop edx
    1020410205  pop edi
    1020510206  pop esi
     
    1020710208  ret
    1020810209
     10210;; prepare from reading the PCI config space; on input:
     10211;; bx = bus/dev/fn
     10212;; di = offset into config space header
     10213;; destroys eax and may modify di
    1020910214pci_real_select_reg:
    1021010215  push dx
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