aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/framebuffer.cc2
-rw-r--r--src/drivers/psf.cc1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/framebuffer.cc b/src/drivers/framebuffer.cc
index 2ac47db..4d5389c 100644
--- a/src/drivers/framebuffer.cc
+++ b/src/drivers/framebuffer.cc
@@ -7,11 +7,11 @@ FB_CFG fb_cfg;
void framebuffer_init(FB_CFG config){
fb_cfg=config;
+ PAGING_MAP_RANGE(fb_cfg.location, fb_cfg.pitch*fb_cfg.height);
}
void framebuffer_draw(FB_PIXEL p){
u8 *pixel=(u8*)(fb_cfg.location+p.x*(fb_cfg.depth/8)+p.y*fb_cfg.pitch);
- PAGING_MAP(pixel);
pixel[0]=p.r;
pixel[1]=p.g;
pixel[2]=p.b;
diff --git a/src/drivers/psf.cc b/src/drivers/psf.cc
index 187d711..ce838e8 100644
--- a/src/drivers/psf.cc
+++ b/src/drivers/psf.cc
@@ -38,7 +38,6 @@ void psf_putchar(char c){
u8* glyph=(psf_status.psf_addr+psf_status.header.header_length+c*psf_status.header.glyph_size);
FB_PIXEL pixel;
for(int i=0;i<psf_status.header.glyph_height;i++){
- PAGING_MAP(glyph);
for(int k=0;k<(psf_status.header.glyph_width/8);k++){
u8 mask=1<<7;
u8 row=*(glyph+k);