Skip to content
Snippets Groups Projects
Commit 34f9fc4d authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Do not use PAT bit when mapping 32-bit framebuffer

parent 4fe94792
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ pub unsafe fn paging_framebuffer< ...@@ -77,7 +77,7 @@ pub unsafe fn paging_framebuffer<
let mut pt_i = 0; let mut pt_i = 0;
while framebuffer_mapped < framebuffer_size && pt_i < pt.len() { while framebuffer_mapped < framebuffer_size && pt_i < pt.len() {
let addr = framebuffer_phys + framebuffer_mapped; let addr = framebuffer_phys + framebuffer_mapped;
pt[pt_i] = addr as u32 | 1 << 7 | 1 << 1 | 1; pt[pt_i] = addr as u32 | 1 << 1 | 1;
pt_i += 1; pt_i += 1;
framebuffer_mapped += PAGE_SIZE as u64; framebuffer_mapped += PAGE_SIZE as u64;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment