Changeset 3607 for trunk

Show
Ignore:
Timestamp:
09/26/08 20:40:06 (8 weeks ago)
Author:
stepan
Message:

Use a block cursor on VGA console :-)

Signed-off-by: Stefan Reinauer <stepan@…>
Acked-by: Jordan Crouse <jordan.crouse@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/payloads/libpayload/drivers/video/vga.c

    r3524 r3607  
    124124} 
    125125 
     126static void vga_init_cursor(void) 
     127{ 
     128        u8 val; 
     129 
     130#define CURSOR_MSL   0x09   /* cursor maximum scan line */ 
     131#define CURSOR_START 0x0A   /* cursor start */ 
     132#define CURSOR_END   0x0B   /* cursor end */ 
     133 
     134        val = crtc_read(CURSOR_MSL) & 0x1f; 
     135        crtc_write(0, CURSOR_START); 
     136        crtc_write(val - 2, CURSOR_END); 
     137} 
     138 
    126139static int vga_init(void) 
    127140{ 
     141        vga_init_cursor(); 
    128142        return 0; 
    129143}