Ignore:
Timestamp:
2009-03-18T16:26:01Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eada065e
Parents:
7dfc120a
Message:

properly detect VESA 16 bpp modes with 5:5:5 colors

File:
1 edited

Legend:

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

    r7dfc120a r1496f87  
    8383                # returned back to protected mode
    8484               
    85                 mov %esi, KA2PA(vesa_ph_addr)
    86                 mov %di, KA2PA(vesa_height)
    87                 shr $16, %edi
    88                 mov %di, KA2PA(vesa_width)
    89                 mov %bx, KA2PA(vesa_scanline)
     85                mov %ax, KA2PA(vesa_scanline)
     86                shr $16, %eax
     87                mov %ax, KA2PA(vesa_bpp)
     88               
     89                mov %bx, KA2PA(vesa_height)
    9090                shr $16, %ebx
    91                 mov %bx, KA2PA(vesa_bpp)
     91                mov %bx, KA2PA(vesa_width)
     92               
     93                mov %dl, KA2PA(vesa_green_pos)
     94                shr $8, %edx
     95                mov %dl, KA2PA(vesa_green_mask)
     96                shr $8, %edx
     97                mov %dl, KA2PA(vesa_red_pos)
     98                shr $8, %edx
     99                mov %dl, KA2PA(vesa_red_mask)
     100               
     101                mov %esi, %edx
     102                mov %dl, KA2PA(vesa_blue_pos)
     103                shr $8, %edx
     104                mov %dl, KA2PA(vesa_blue_mask)
     105               
     106                mov %edi, KA2PA(vesa_ph_addr)
    92107#endif
Note: See TracChangeset for help on using the changeset viewer.