Changeset 67668 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Jun 28, 2017 4:28:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/pcibios.inc
r60422 r67668 96 96 push bp 97 97 mov bp, sp 98 ifdef VBOX 99 mov eax,19200509 100 mov dx,410h 101 out dx, eax 102 else 103 ; This incomplete PCI resource setup code is less functional than the PCI 104 ; resource assignment created by the fake PCI BIOS and is therefore disabled. 105 ; Blindly enabling everything on the root bus (including bus mastering!) can 106 ; only be called buggy. It causes the trouble with AMD PCNet which it then 107 ; tries to work around, but that still contains a race. 98 108 mov eax, 0E0000000h ; base for memory init 99 109 push eax … … 111 121 jz next_pci_dev 112 122 113 ifndef VBOX ; This currently breaks restoring a previously saved state. */123 ifndef VBOX ; This currently breaks restoring a previously saved state. 114 124 mov dl, 4 ; disable i/o and memory space access 115 125 call pcibios_init_sel_reg … … 201 211 cmp bx, 0100h 202 212 jne pci_init_io_loop1 213 endif ; !VBOX 203 214 mov sp, bp 204 215 pop bp … … 230 241 mov ax, 0F000h 231 242 mov ds, ax 243 ifndef VBOX 244 ; this code works OK, but it's unnecessary effort since the fake PCI BIOS 245 ; already configured the IRQ lines and the ELCR correctly 232 246 mov dx, 04D0h ;; reset ELCR1 + ELCR2 233 247 mov al, 0 … … 282 296 mov dl, 3Ch 283 297 call pcibios_init_sel_reg 284 mov dx, PCI_CFG2 + 1 ; TODO: was #0x0cfd - is that right?298 mov dx, PCI_CFG2 + 1 ; access config space at 3Dh 285 299 in al, dx 286 300 and al, 7 … … 332 346 pop bx 333 347 pci_init_end: 348 endif 334 349 pop bp 335 350 pop ds
Note:
See TracChangeset
for help on using the changeset viewer.