vt: go back to memcpy
authorAlan Cox <alan@etchedpixels.co.uk>
Fri, 28 Nov 2014 22:09:52 +0000 (22:09 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Fri, 28 Nov 2014 22:09:52 +0000 (22:09 +0000)
We do need to switch to a memmove, but now we've fixed memcpy we can just
tag it as a TODO. Reverse scroll is busted on dragon due to this

Kernel/vt.c

index 77cf3cb..81ffb65 100644 (file)
@@ -233,13 +233,7 @@ void clear_across(int8_t y, int8_t x, int16_t l)
 
 void scroll_up(void)
 {
-       unsigned char *p = VT_BASE;
-       int n = VT_WIDTH * VT_BOTTOM;
-       while (n--) {
-               *p = p[VT_WIDTH];
-               p++;
-       }
-//     memcpy(VT_BASE, VT_BASE + VT_WIDTH, VT_WIDTH * VT_BOTTOM);
+       memcpy(VT_BASE, VT_BASE + VT_WIDTH, VT_WIDTH * VT_BOTTOM);
 }
 
 void scroll_down(void)