Changeset 15819e37 in mainline for kernel/arch/ia64/src/drivers/ega.c


Ignore:
Timestamp:
2007-02-04T21:04:36Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7d307e7
Parents:
5573942
Message:

Minor cleanup in ia64.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/drivers/ega.c

    r5573942 r15819e37  
    4646#include <console/console.h>
    4747#include <sysinfo/sysinfo.h>
    48 #include <arch/simics/ega.h>
     48#include <arch/drivers/ega.h>
    4949
    5050/*
     
    6767void ega_init(void)
    6868{
    69        
    7069        videoram = (uint8_t *) (VIDEORAM);
     70
     71        /*
     72         * Clear the screen.
     73         */
     74        _memsetw((uintptr_t) videoram, SCREEN, 0x0720);
    7175
    7276        chardev_initialize("ega_out", &ega_console, &ega_ops);
     
    8791{
    8892        videoram[ega_cursor * 2] = ch;
    89         videoram[ega_cursor * 2+1] = 7;
     93        videoram[ega_cursor * 2 + 1] = 7;
    9094}
    9195
     
    9599static void ega_check_cursor(void)
    96100{
    97         int i;
    98101        if (ega_cursor < SCREEN)
    99102                return;
    100103
    101104        memcpy((void *) videoram, (void *) (videoram + ROW * 2), (SCREEN - ROW) * 2);
    102         for(i=0;i<ROW*2;i+=2)
    103         {
    104                 videoram[(SCREEN-ROW)*2+i+0]=0x20;
    105                 videoram[(SCREEN-ROW)*2+i+1]=0x07;
    106         }
     105        _memsetw((uintptr_t) (videoram + (SCREEN - ROW) * 2), ROW, 0x0720);
    107106        ega_cursor = ega_cursor - ROW;
    108107}
     
    137136}
    138137
    139 
    140138/** @}
    141139 */
Note: See TracChangeset for help on using the changeset viewer.