- Timestamp:
- Nov 29, 2010 11:39:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r34426 r34455 4648 4648 Bit16u varNum; 4649 4649 { 4650 int i Port = 0x402;4650 int i, iPort = 0x402; 4651 4651 Bit32u result = 0; 4652 Bit8u bits[4]; 4652 4653 4653 4654 outw(iPort, varNum); 4654 result = (inb(iPort) << 24) | (inb(iPort) << 16) | 4655 (inb(iPort) << 8) | (inb(iPort) << 0); 4656 BX_INFO("var %d is %x\n", varNum, result); 4655 4656 for (i=0; i<4; i++) 4657 bits[i] = inb(iPort); 4658 4659 result = (((Bit32u)bits[3]) << 24) | (((Bit32u)bits[2]) << 16) | 4660 (((Bit32u)bits[1]) << 8) | (((Bit32u)bits[0]) << 0); 4661 4657 4662 return result; 4658 4663 } … … 4829 4834 set_e820_range(ES, regs.u.r16.di, 4830 4835 0xfffc0000L, 0x00000000L, 0, 0, 2); 4831 if (mcfgStart >0)4836 if (mcfgStart != 0) 4832 4837 regs.u.r32.ebx = 6; 4833 4838 else … … 4842 4847 /* PCI MMIO config space (MCFG) */ 4843 4848 set_e820_range(ES, regs.u.r16.di, 4844 mcfgStart, mcfgS ize, 0, 0, 2);4849 mcfgStart, mcfgStart + mcfgSize, 0, 0, 2); 4845 4850 4846 4851 if (extra_highbits_memory_size || extra_lowbits_memory_size)
Note:
See TracChangeset
for help on using the changeset viewer.