uncached: setup Shareable Device memory

This commit is contained in:
Astro 2020-06-22 02:04:56 +02:00
parent c72402b966
commit fb4022f04d
1 changed files with 3 additions and 1 deletions

View File

@ -25,8 +25,10 @@ impl<T> UncachedSlice<T> {
for page_start in (start..(start + size)).step_by(L1_PAGE_SIZE) {
L1Table::get()
.update(page_start as *const (), |l1_section| {
// Shareable Device
l1_section.tex = 0b000;
l1_section.cacheable = false;
l1_section.bufferable = false;
l1_section.bufferable = true;
});
}