Changeset 1433 in vbox for trunk/src/VBox/Devices/PC/BIOS
- Timestamp:
- Mar 12, 2007 6:09:31 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r1427 r1433 9852 9852 cmp ax, #0xffff 9853 9853 jz next_pci_dev 9854 #ifndef VBOX /* This currently breaks restoring a previously saved state. */ 9854 9855 mov dl, #0x04 ;; disable i/o and memory space access 9855 9856 call pcibios_init_sel_reg … … 9902 9903 mov byte ptr[bp-8], al 9903 9904 jmp pci_init_io_loop2 9905 #endif /* !VBOX */ 9904 9906 enable_iomem_space: 9905 9907 mov dl, #0x04 ;; enable i/o and memory space access if available … … 9909 9911 or al, #0x07 9910 9912 out dx, al 9913 #ifdef VBOX 9914 mov dl, #0x00 ;; check if PCI device is AMD PCNet 9915 call pcibios_init_sel_reg 9916 mov dx, #0x0cfc 9917 in eax, dx 9918 cmp eax, #0x20001022 9919 jne next_pci_dev 9920 mov dl, #0x10 ;; get I/O address 9921 call pcibios_init_sel_reg 9922 mov dx, #0x0cfc 9923 in ax, dx 9924 and ax, #0xfffc 9925 mov cx, ax 9926 mov dx, cx 9927 add dx, #0x14 ;; reset register if PCNet is in word I/O mode 9928 in ax, dx ;; reset is performed by reading the reset register 9929 mov dx, cx 9930 add dx, #0x18 ;; reset register if PCNet is in word I/O mode 9931 in eax, dx ;; reset is performed by reading the reset register 9932 #endif /* VBOX */ 9911 9933 next_pci_dev: 9912 9934 mov byte ptr[bp-8], #0x10 … … 10594 10616 call rombios32_init 10595 10617 #else 10596 #if 0 /* This currently breaks restoring a previously saved state. */10597 10618 call pcibios_init_iomem_bases 10598 #endif10599 10619 call pcibios_init_irqs 10600 10620 #endif
Note:
See TracChangeset
for help on using the changeset viewer.