Subversion Repositories HelenOS

Rev

Rev 2110 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2110 Rev 3104
Line 69... Line 69...
69
    videoram = (uint8_t *) (VIDEORAM);
69
    videoram = (uint8_t *) (VIDEORAM);
70
 
70
 
71
    /*
71
    /*
72
     * Clear the screen.
72
     * Clear the screen.
73
     */
73
     */
74
    _memsetw((uintptr_t) videoram, SCREEN, 0x0720);
74
    _memsetw(videoram, SCREEN, 0x0720);
75
 
75
 
76
    chardev_initialize("ega_out", &ega_console, &ega_ops);
76
    chardev_initialize("ega_out", &ega_console, &ega_ops);
77
    stdout = &ega_console;
77
    stdout = &ega_console;
78
   
78
   
79
    sysinfo_set_item_val("fb", NULL, true);
79
    sysinfo_set_item_val("fb", NULL, true);
Line 100... Line 100...
100
{
100
{
101
    if (ega_cursor < SCREEN)
101
    if (ega_cursor < SCREEN)
102
        return;
102
        return;
103
 
103
 
104
    memcpy((void *) videoram, (void *) (videoram + ROW * 2), (SCREEN - ROW) * 2);
104
    memcpy((void *) videoram, (void *) (videoram + ROW * 2), (SCREEN - ROW) * 2);
105
    _memsetw((uintptr_t) (videoram + (SCREEN - ROW) * 2), ROW, 0x0720);
105
    _memsetw(videoram + (SCREEN - ROW) * 2, ROW, 0x0720);
106
    ega_cursor = ega_cursor - ROW;
106
    ega_cursor = ega_cursor - ROW;
107
}
107
}
108
 
108
 
109
void ega_putchar(chardev_t *d, const char ch)
109
void ega_putchar(chardev_t *d, const char ch)
110
{
110
{