Changes in kernel/arch/ia32/src/boot/vesa_real.inc [8be3230:36aec61e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/boot/vesa_real.inc
r8be3230 r36aec61e 21 21 #define VESA_END_OF_MODES 0xffff 22 22 23 #define VESA_OK 0x 4f23 #define VESA_OK 0x004f 24 24 25 25 #define VESA_GET_INFO 0x4f00 … … 180 180 181 181 pop %di 182 cmp $VESA_OK, %a l182 cmp $VESA_OK, %ax 183 183 jnz no_mode 184 184 … … 207 207 pop %di 208 208 pop %cx 209 cmp $VESA_OK, %a l209 cmp $VESA_OK, %ax 210 210 jne no_mode 211 211 … … 254 254 255 255 pop %di 256 cmp $VESA_OK, %a l256 cmp $VESA_OK, %ax 257 257 jnz no_mode 258 258 … … 364 364 365 365 /* No prefered mode found */ 366 366 push %di 367 mov $e_vesa_init - vesa_init, %di 368 mov 2 + VESA_MODE_LIST_PTR_OFFSET(%di), %si 369 mov %si, %gs 370 mov VESA_MODE_LIST_PTR_OFFSET(%di), %si 371 pop %di 372 373 /* Check if list of supported modes contains fallback mode */ 374 find_fallback_mode: 375 376 mov %gs:(%si), %cx 377 378 cmp $0x111, %cx 379 je fallback_mode_listed 380 381 cmp $VESA_END_OF_MODES, %cx 382 je text_mode 383 384 inc %si 385 inc %si 386 jmp find_fallback_mode /* 16-bit relative jump */ 387 388 fallback_mode_listed: 389 /* Make sure fallback mode is really supported */ 367 390 mov $0x111, %cx 368 391 push %di … … 373 396 pop %cx 374 397 pop %di 375 cmp $VESA_OK, %a l398 cmp $VESA_OK, %ax 376 399 jnz text_mode 377 jz set_mode /* force relative jump */ 400 401 /* Verify mode attributes */ 402 and $0x99, %ax 403 cmp $0x99, %ax 404 jne text_mode 405 406 jmp set_mode /* 16-bit relative jump */ 378 407 379 408 text_mode:
Note:
See TracChangeset
for help on using the changeset viewer.