From dcd258955c9da543497ff1f231dde2480f680bd8 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 28 Nov 2014 22:09:52 +0000 Subject: [PATCH] vt: go back to memcpy 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 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Kernel/vt.c b/Kernel/vt.c index 77cf3cb1..81ffb65d 100644 --- a/Kernel/vt.c +++ b/Kernel/vt.c @@ -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) -- 2.34.1