Changeset 42260 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Jul 20, 2012 1:22:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/logo.c
r41774 r42260 49 49 "int 10h" \ 50 50 parm [bx] modify [ax] nomemory; 51 52 /** 53 * Get current VESA video mode. 54 * @params New video mode. 55 */ 56 uint16_t vesa_get_mode(uint16_t __far *mode); 57 #pragma aux vesa_get_mode = \ 58 "mov ax, 4F03h" \ 59 "int 10h" \ 60 "mov es:[di], bx" \ 61 parm [es di] modify [ax] nomemory; 51 62 52 63 … … 317 328 uint8_t is_fade_in, is_fade_out, uBootMenu; 318 329 uint16_t logo_time; 330 uint16_t old_mode; 319 331 320 332 321 333 // Set PIT to 1ms ticks 322 334 wait_init(); 323 324 335 325 336 // Get main signature 326 337 tmp = read_logo_word((uint8_t)&logo_hdr->u16Signature); 327 338 if (tmp != 0x66BB) 339 goto done; 340 341 // If there is no VBE, just skip this 342 if (vesa_get_mode(&old_mode) != 0x004f ) 328 343 goto done; 329 344
Note:
See TracChangeset
for help on using the changeset viewer.