1
0
Fork 0

uncached: disable cachable/bufferable

This commit is contained in:
Astro 2020-06-22 02:04:56 +02:00
parent 5c69bbdad6
commit c6fa18344e
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ impl<T> UncachedSlice<T> {
for page_start in (start..(start + size)).step_by(L1_PAGE_SIZE) { for page_start in (start..(start + size)).step_by(L1_PAGE_SIZE) {
L1Table::get() L1Table::get()
.update(page_start as *const (), |l1_section| { .update(page_start as *const (), |l1_section| {
l1_section.tex = 0b100;
l1_section.cacheable = false; l1_section.cacheable = false;
l1_section.bufferable = false; l1_section.bufferable = false;
}); });