aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/framebuffer.cc
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-04-29 08:49:41 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-04-29 08:49:41 +0200
commitfde8a1ab65d5e33d90123a3aaa9b5c15e249689f (patch)
tree14134c0c2f322cbcba0989b78bd7057f76c157c3 /src/drivers/framebuffer.cc
parent067d6e340be698b0e26b7732215a1969e0e683f3 (diff)
Debug, add memory print driver
Diffstat (limited to 'src/drivers/framebuffer.cc')
-rw-r--r--src/drivers/framebuffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/framebuffer.cc b/src/drivers/framebuffer.cc
index 4d5389c..9f90d84 100644
--- a/src/drivers/framebuffer.cc
+++ b/src/drivers/framebuffer.cc
@@ -22,7 +22,7 @@ void framebuffer_draw(FB_PIXEL p){
void framebuffer_scrollup(u32 npixel){
u64 start=fb_cfg.location+npixel*fb_cfg.pitch;
u64 amount=fb_cfg.pitch*(fb_cfg.height-npixel);
- memcpy((void*)start,(void*)fb_cfg.location,amount);
+ memcpy((void*)start,(void*)fb_cfg.location,amount); // TODO change because page fault can occurs
}
void framebuffer_clear(){