arm:vm caching fix.
Improve reliability by using write trough cache.
This commit is contained in:
committed by
Kees Jongenburger
parent
a3f6529ee2
commit
1e1ff96aea
@@ -103,7 +103,7 @@ static phys_bytes createpde(
|
||||
pdeval = (linaddr & ARM_VM_SECTION_MASK)
|
||||
| ARM_VM_SECTION
|
||||
| ARM_VM_SECTION_DOMAIN
|
||||
| ARM_VM_SECTION_WT
|
||||
| ARM_VM_SECTION_DEVICE
|
||||
| ARM_VM_SECTION_USER;
|
||||
}
|
||||
|
||||
@@ -684,6 +684,7 @@ static int device_mem_mapping_index = -1,
|
||||
|
||||
char *device_mem;
|
||||
|
||||
/* defined in kernel.lds */
|
||||
extern char usermapped_start, usermapped_end, usermapped_nonglo_start;
|
||||
|
||||
int arch_phys_map(const int index,
|
||||
|
||||
@@ -200,7 +200,6 @@ void vm_enable_paging(void)
|
||||
/* Enable MMU */
|
||||
sctlr |= SCTLR_M;
|
||||
|
||||
/* AFE set to zero (default reset value): not using simplified model. */
|
||||
/* TRE set to zero (default reset value): TEX[2:0] are used, plus C and B bits.*/
|
||||
sctlr &= ~SCTLR_TRE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user