Changeset 42332 in vbox for trunk/src/VBox/Devices/PC/BIOS/timepci.c
- Timestamp:
- Jul 23, 2012 4:48:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/timepci.c
r38699 r42332 146 146 // in the following routines 147 147 148 /* The PCI BIOS routine must be callable from protected mode, and149 * therefore must not modify any segment registers(!).150 */151 #if BX_PCIBIOS152 void BIOSCALL int1a_function_pci(i1apci_regs_t r)153 {154 #if 0155 // real mode PCI BIOS functions now handled in assembler code156 // this C code handles the error code for information only157 if (r.gr.u.r8.ah == 0xff) {158 BX_INFO("PCI BIOS: PCI not present\n");159 } else if (r.gr.u.r8.ah == 0x81) {160 BX_INFO("unsupported PCI BIOS function 0x%02x\n", r.gr.u.r8.al);161 } else if (r.gr.u.r8.ah == 0x83) {162 BX_INFO("bad PCI vendor ID %04x\n", r.gr.u.r16.dx);163 } else if (r.gr.u.r8.ah == 0x86) {164 if (r.gr.u.r8.ah == 0x02) {165 BX_INFO("PCI device %04x:%04x not found at index %d\n", r.gr.u.r16.dx, r.gr.u.r16.cx, r.gr.u.r16.si);166 } else {167 BX_INFO("no PCI device with class code 0x%02x%04x found at index %d\n", r.gr.u.r8.cl, r.gr.u.r16.dx, r.gr.u.r16.si);168 }169 }170 #endif171 //@todo: OS/2 MCP2 apparently calls us in protected mode with a DS which does not172 // point to the BIOS segment!?!173 send(BIOS_PRINTF_INFO, '!');174 send(BIOS_PRINTF_INFO, '\n');175 if (!GetCF(r.ra.flags)) {176 SetCF(r.ra.flags);177 }178 }179 #endif180 181 182 148 void BIOSCALL int1a_function(pusha_regs_t regs, uint16_t ds, uint16_t es, iret_addr_t iret_addr) 183 149 {
Note:
See TracChangeset
for help on using the changeset viewer.