Changeset 59115 in vbox
- Timestamp:
- Dec 14, 2015 1:50:06 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 104686
- Location:
- trunk/src/VBox/Devices/PC/BIOS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/floppy.c
r59114 r59115 82 82 uint8_t floppy_wait_for_interrupt(void) 83 83 { 84 uint32_t retries = 18;85 86 84 int_disable(); 87 for (; retries;--retries)85 for (;;) 88 86 { 89 87 uint8_t val8 = read_byte(0x0040, 0x003e); … … 92 90 int_enable_hlt_disable(); 93 91 } 94 return 0;95 92 } 96 93 … … 178 175 // wait on 40:3e bit 7 to become 1 179 176 do { 180 val8 = inb(0x80);181 177 val8 = read_byte(0x0040, 0x003e); 182 } while ( (val8 & 0x80) == 0 && --retries);178 } while ( (val8 & 0x80) == 0 ); 183 179 val8 &= 0x7f; 184 180 int_disable(); -
trunk/src/VBox/Devices/PC/BIOS/makefile
r59114 r59115 16 16 CFLAGS = -q -0 -wx -zu -s -oas -d1+ -ms 17 17 CFLAGS32 = -q -wx -zu -s -oas -d1+ -ms -nt=BIOS32 -nd=BIOS32 18 # -oat seems to prevent ENTER/LEAVE generation19 #CFLAGS32 = -q -wx -zu -s -oat -d1+ -ms -nt=BIOS32 -nd=BIOS3220 18 21 19 DEFS = -DVBOX -DVBOX_LANBOOT_SEG=0xE200 -DVBOX_VERSION_STRING=$(Q)0.9$(Q) & … … 47 45 clname DATA segaddr=0xF000 segment _DATA & 48 46 clname CODE & 49 segment _TEXT segaddr=0xF000 offset=0x1 C00 &47 segment _TEXT segaddr=0xF000 offset=0x1600 & 50 48 segment BIOS32 segaddr=0xF000 offset=0xDB00 & 51 49 segment BIOSSEG segaddr=0xF000 offset=0xE000 &
Note:
See TracChangeset
for help on using the changeset viewer.