arm:vm caching fix.

Improve reliability by using write trough cache.
This commit is contained in:
Kees Jongenburger
2013-05-16 10:11:12 +02:00
committed by Kees Jongenburger
parent a3f6529ee2
commit 1e1ff96aea
4 changed files with 11 additions and 10 deletions

View File

@@ -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,

View File

@@ -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;