Changeset 55136 in vbox for trunk/src/VBox/Devices/PC/BIOS
- Timestamp:
- Apr 8, 2015 2:25:23 PM (10 years ago)
- Location:
- trunk/src/VBox/Devices/PC/BIOS
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/boot.c
r54451 r55136 255 255 #endif // BX_ELTORITO_BOOT 256 256 257 // Sanity check on the LAN boot seg macro 258 //#if VBOX_LANBOOT_SEG == 0 259 //#error Invalid VBOX_LANBOOT_SEG definition! 260 //#endif 261 257 262 // Check for boot from LAN first 258 263 if (bootlan == 1) { -
trunk/src/VBox/Devices/PC/BIOS/floppy.c
r54563 r55136 82 82 uint8_t floppy_wait_for_interrupt(void) 83 83 { 84 uint32_t retries = 18; 85 84 86 int_disable(); 85 for (; ;)87 for (;retries;--retries) 86 88 { 87 89 uint8_t val8 = read_byte(0x0040, 0x003e); … … 90 92 int_enable_hlt_disable(); 91 93 } 94 return 0; 92 95 } 93 96 … … 175 178 // wait on 40:3e bit 7 to become 1 176 179 do { 180 val8 = inb(0x80); 177 181 val8 = read_byte(0x0040, 0x003e); 178 } while ( (val8 & 0x80) == 0 );182 } while ( (val8 & 0x80) == 0 && --retries); 179 183 val8 &= 0x7f; 180 184 int_disable(); -
trunk/src/VBox/Devices/PC/BIOS/orgs.asm
r51061 r55136 1820 1820 include smidmi.inc 1821 1821 1822 BIOSORG 0FFE8h 1823 dw 3330h 1824 1822 1825 ;; -------------------------------------------------------- 1823 1826 ;; Processor reset entry point -
trunk/src/VBox/Devices/PC/BIOS/post.c
r50160 r55136 100 100 } 101 101 } 102 outb_cmos(0x12, 0x20); 102 103 } -
trunk/src/VBox/Devices/PC/BIOS/scsi.c
r55132 r55136 429 429 | ((uint32_t)buffer[2] << 8) 430 430 | ((uint32_t)buffer[3]); 431 ++sectors; /* Returned value is the last LBA, zero-based. */ 431 432 432 433 sector_size = ((uint32_t)buffer[4] << 24)
Note:
See TracChangeset
for help on using the changeset viewer.