Changeset 485f899 in mainline


Ignore:
Timestamp:
2022-01-16T12:53:51Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36aec61e
Parents:
b9a30fa
Message:

Need to check the entire AX register for VBE status

AL only tells us the function is supported, but not whether the call
was successful, that is contained in AH.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/boot/vesa_real.inc

    rb9a30fa r485f899  
    2121#define VESA_END_OF_MODES  0xffff
    2222
    23 #define VESA_OK  0x4f
     23#define VESA_OK  0x004f
    2424
    2525#define VESA_GET_INFO       0x4f00
     
    180180
    181181        pop %di
    182         cmp $VESA_OK, %al
     182        cmp $VESA_OK, %ax
    183183        jnz no_mode
    184184
     
    207207                pop %di
    208208                pop %cx
    209                 cmp $VESA_OK, %al
     209                cmp $VESA_OK, %ax
    210210                jne no_mode
    211211
     
    254254
    255255                pop %di
    256                 cmp $VESA_OK, %al
     256                cmp $VESA_OK, %ax
    257257                jnz no_mode
    258258
     
    373373                pop %cx
    374374                pop %di
    375                 cmp $VESA_OK, %al
     375                cmp $VESA_OK, %ax
    376376                jnz text_mode
    377377                jz set_mode  /* force relative jump */
Note: See TracChangeset for help on using the changeset viewer.