Ignore:
File:
1 edited

Legend:

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

    rcf155ed rc427578  
    154154        mov $e_vesa_init - vesa_init, %di
    155155        push %di
    156         /* Write the "VBE2" signature into the info structure in order
    157          * to get proper mode information. The presence of "VBE2"
    158          * indicates two things:
    159          *
    160          *  - VBE controller information structure is expected to be
    161          *    512 bytes long instead of 256 bytes.
    162          *  - The BIOS should report VBE 3.0 information (potentially
    163          *    including non-standard modes in the mode list).
     156        /* Write "VBE2" signature to info structure in order to get
     157         * proper mode information. The presence of "VBE2" indicates two
     158         * things:
     159         *  - VBE controller information structure is 512 bytes long
     160         *    instead of 256
     161         *  - The BIOS reports VBE 3.0 information (including non-standard
     162         *    modes in mode list)
    164163         */
    165164        movl $0x32454256, (%di)
     
    304303                /*
    305304                 * Store mode parameters:
    306                  *  eax = bpp[16] scanline[16]
     305                 *  eax = bpp[8] scanline[16]
    307306                 *  ebx = width[16]  height[16]
    308307                 *  edx = red_mask[8] red_pos[8] green_mask[8] green_pos[8]
     
    328327                shl $8, %edx
    329328                mov VESA_MODE_RED_POS_OFFSET(%di), %dl
    330                
    331329                shl $8, %edx
    332330                mov VESA_MODE_GREEN_MASK_OFFSET(%di), %dl
     
    370368                mov $0x0003, %ax
    371369                int $0x10
    372                
    373                 xor %eax, %eax
    374                 xor %ebx, %ebx
    375                 xor %edx, %edx
    376                 xor %edi, %edi
    377                
     370                mov $0xffffffff, %edi
     371                xor %ax, %ax
    378372                jz vesa_leave_real  /* force relative jump */
    379373
     
    391385
    392386default_mode:
    393         .ascii STRING(CONFIG_BFB_MODE)
     387        .ascii STRING(CONFIG_VESA_MODE)
    394388        .ascii "-"
    395         .asciz STRING(CONFIG_BFB_BPP)
     389        .asciz STRING(CONFIG_VESA_BPP)
    396390        .fill 24
    397391
Note: See TracChangeset for help on using the changeset viewer.