Changeset 63562 in vbox for trunk/src/VBox/Devices/PC/BIOS/eltorito.c
- Timestamp:
- Aug 16, 2016 2:04:03 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 110217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/eltorito.c
r62509 r63562 66 66 67 67 68 // @todo:put in a header68 /// @todo put in a header 69 69 #define AX r.gr.u.r16.ax 70 70 #define BX r.gr.u.r16.bx … … 142 142 void BIOSCALL cdemu_init(void) 143 143 { 144 // @TODO:a macro or a function for getting the EBDA segment144 /// @todo a macro or a function for getting the EBDA segment 145 145 uint16_t ebda_seg = read_word(0x0040,0x000E); 146 146 … … 151 151 uint8_t BIOSCALL cdemu_isactive(void) 152 152 { 153 // @TODO:a macro or a function for getting the EBDA segment153 /// @todo a macro or a function for getting the EBDA segment 154 154 uint16_t ebda_seg = read_word(0x0040,0x000E); 155 155 … … 159 159 uint8_t BIOSCALL cdemu_emulated_drive(void) 160 160 { 161 // @TODO:a macro or a function for getting the EBDA segment161 /// @todo a macro or a function for getting the EBDA segment 162 162 uint16_t ebda_seg = read_word(0x0040,0x000E); 163 163 … … 171 171 void BIOSCALL int13_eltorito(disk_regs_t r) 172 172 { 173 // @TODO:a macro or a function for getting the EBDA segment173 /// @todo a macro or a function for getting the EBDA segment 174 174 uint16_t ebda_seg=read_word(0x0040,0x000E); 175 175 cdemu_t __far *cdemu; … … 193 193 case 0x4b: // ElTorito - Terminate disk emu 194 194 // FIXME ElTorito Hardcoded 195 // @todo:maybe our cdemu struct should match El Torito to allow memcpy()?195 /// @todo maybe our cdemu struct should match El Torito to allow memcpy()? 196 196 write_byte(DS,SI+0x00,0x13); 197 197 write_byte(DS,SI+0x01,cdemu->media); … … 240 240 241 241 /* Utility routine to check if a device is a CD-ROM. */ 242 // @todo:this function is kinda useless as the ATAPI type check is obsolete.242 /// @todo this function is kinda useless as the ATAPI type check is obsolete. 243 243 static uint16_t device_is_cdrom(uint8_t device) 244 244 { … … 269 269 uint16_t cdrom_boot(void) 270 270 { 271 // @TODO:a macro or a function for getting the EBDA segment271 /// @todo a macro or a function for getting the EBDA segment 272 272 uint16_t ebda_seg=read_word(0x0040,0x000E); 273 273 uint8_t buffer[2048]; … … 314 314 if (buffer[0] != 0) 315 315 return 4; 316 // @todo:what's wrong with memcmp()?316 /// @todo what's wrong with memcmp()? 317 317 for (i = 0; i < 5; ++i) { 318 318 if (buffer[1+i] != isotag[i]) … … 341 341 return 7; 342 342 343 // @todo:Define a struct for the Boot Catalog, the hardcoded offsets are so dumb...343 /// @todo Define a struct for the Boot Catalog, the hardcoded offsets are so dumb... 344 344 345 345 /* Check if the Boot Catalog looks valid. */ … … 464 464 void BIOSCALL int13_cdemu(disk_regs_t r) 465 465 { 466 // @TODO:a macro or a function for getting the EBDA segment466 /// @todo a macro or a function for getting the EBDA segment 467 467 uint16_t ebda_seg=read_word(0x0040,0x000E); 468 468 uint8_t device, status; … … 628 628 /* Only set the DPT pointer for emulated floppies. */ 629 629 if (cdemu->media < 4) { 630 DI = (uint16_t)&diskette_param_table; // @todo:should this depend on emulated medium?631 ES = 0xF000; // @todo:how to make this relocatable?630 DI = (uint16_t)&diskette_param_table; /// @todo should this depend on emulated medium? 631 ES = 0xF000; /// @todo how to make this relocatable? 632 632 } 633 633 goto int13_success; … … 852 852 // FIXME should handle 0xb5 valid request failed 853 853 854 #if 0 // @todo:implement!854 #if 0 /// @todo implement! 855 855 // Call removable media eject 856 856 ASM_START … … 876 876 break; 877 877 878 // @todo:Part of this should be merged with analogous code in disk.c878 /// @todo Part of this should be merged with analogous code in disk.c 879 879 case 0x48: // IBM/MS get drive parameters 880 880 dpt = DS :> (dpt_t *)SI;
Note:
See TracChangeset
for help on using the changeset viewer.