forked from M-Labs/zynq-rs
uncached: setup Shareable Device memory
This commit is contained in:
parent
0b99b0a864
commit
ac89367f8f
@ -25,9 +25,10 @@ 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;
|
// Shareable Device
|
||||||
|
l1_section.tex = 0b000;
|
||||||
l1_section.cacheable = false;
|
l1_section.cacheable = false;
|
||||||
l1_section.bufferable = false;
|
l1_section.bufferable = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user