Ignore:
File:
1 edited

Legend:

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

    rc427578 rcf155ed  
    154154        mov $e_vesa_init - vesa_init, %di
    155155        push %di
    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)
     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).
    163164         */
    164165        movl $0x32454256, (%di)
     
    303304                /*
    304305                 * Store mode parameters:
    305                  *  eax = bpp[8] scanline[16]
     306                 *  eax = bpp[16] scanline[16]
    306307                 *  ebx = width[16]  height[16]
    307308                 *  edx = red_mask[8] red_pos[8] green_mask[8] green_pos[8]
     
    327328                shl $8, %edx
    328329                mov VESA_MODE_RED_POS_OFFSET(%di), %dl
     330               
    329331                shl $8, %edx
    330332                mov VESA_MODE_GREEN_MASK_OFFSET(%di), %dl
     
    368370                mov $0x0003, %ax
    369371                int $0x10
    370                 mov $0xffffffff, %edi
    371                 xor %ax, %ax
     372               
     373                xor %eax, %eax
     374                xor %ebx, %ebx
     375                xor %edx, %edx
     376                xor %edi, %edi
     377               
    372378                jz vesa_leave_real  /* force relative jump */
    373379
     
    385391
    386392default_mode:
    387         .ascii STRING(CONFIG_VESA_MODE)
     393        .ascii STRING(CONFIG_BFB_MODE)
    388394        .ascii "-"
    389         .asciz STRING(CONFIG_VESA_BPP)
     395        .asciz STRING(CONFIG_BFB_BPP)
    390396        .fill 24
    391397
Note: See TracChangeset for help on using the changeset viewer.