Changeset 7dfc120a in mainline


Ignore:
Timestamp:
2009-03-18T15:23:03Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1496f87
Parents:
e749794
Message:

check for proper VESA mode attributes

File:
1 edited

Legend:

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

    re749794 r7dfc120a  
    164164                mov %gs:(%si), %cx
    165165                cmp $VESA_END_OF_MODES, %cx
    166                 jz no_mode
     166                je no_mode
    167167               
    168168                inc %si
     
    178178                pop %cx
    179179                cmp $VESA_OK, %al
    180                 jnz no_mode
     180                jne no_mode
     181               
     182                # check for proper attributes (supported, color, graphics, liner framebuffer)
     183               
     184                mov VESA_MODE_ATTRIBUTES_OFFSET(%di), %ax
     185                and $0x99, %ax
     186                cmp $0x99, %ax
     187                jne next_mode
     188               
     189                # check for proper resolution
    181190               
    182191                mov default_width - vesa_init, %ax
    183192                cmp VESA_MODE_WIDTH_OFFSET(%di), %ax
    184                 jnz next_mode
     193                jne next_mode
    185194               
    186195                mov default_height - vesa_init, %ax
    187196                cmp VESA_MODE_HEIGHT_OFFSET(%di), %ax
    188                 jnz next_mode
     197                jne next_mode
     198               
     199                # check for proper bpp
    189200               
    190201                mov default_bpp - vesa_init, %al
    191202                cmp VESA_MODE_BPP_OFFSET(%di), %al
    192                 jz set_mode
     203                je set_mode
    193204               
    194205                mov $24, %al
    195206                cmp default_bpp - vesa_init, %al
    196                 jnz next_mode
     207                jne next_mode
    197208               
    198209                # for 24 bpp modes accept also 32 bit bpp
     
    200211                mov $32, %al
    201212                cmp VESA_MODE_BPP_OFFSET(%di), %al
    202                 jnz next_mode
     213                jne next_mode
    203214       
    204215        set_mode:
Note: See TracChangeset for help on using the changeset viewer.