diff options
Diffstat (limited to 'tboot/vga.c')
-rw-r--r-- | tboot/vga.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tboot/vga.c b/tboot/vga.c index 8ddc2f5..19e99f3 100644 --- a/tboot/vga.c +++ b/tboot/vga.c @@ -61,12 +61,13 @@ static inline void reset_screen(void) static void scroll_screen(void) { - for ( long long y = 1; y < MAX_LINES; y++ ) { - for ( long long x = 0; x < MAX_COLS; x++ ) + long long x,y; + for ( y = 1; y < MAX_LINES; y++ ) { + for ( x = 0; x < MAX_COLS; x++ ) writew(VGA_ADDR(x, y-1), readw(VGA_ADDR(x, y))); } /* clear last line */ - for ( long long x = 0; x < MAX_COLS; x++ ) + for ( x = 0; x < MAX_COLS; x++ ) writew(VGA_ADDR(x, MAX_LINES-1), 0x720); } |