From: Kees Jongenburger Date: Wed, 2 Jan 2013 16:50:11 +0000 (+0100) Subject: vm:enable the instruction and data caches. X-Git-Tag: v3.2.1~140 X-Git-Url: http://zhaoyanbai.com/repos/rndc.conf.html?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F157%2F2;p=minix.git vm:enable the instruction and data caches. Enable the instruction and data caches. Whether data is cached will depend on the MMU entries. Change-Id: I51e9ebc38924db5525d4e7ad9ab69b2a5b1ca7b4 --- diff --git a/kernel/arch/arm/pg_utils.c b/kernel/arch/arm/pg_utils.c index 15877d4c8..1d3bec48e 100644 --- a/kernel/arch/arm/pg_utils.c +++ b/kernel/arch/arm/pg_utils.c @@ -211,9 +211,14 @@ void vm_enable_paging(void) /* Set all Domains to Client */ write_dacr(0x55555555); - /* Enable MMU and access flag */ sctlr = read_sctlr(); + + /* Enable MMU */ sctlr |= (SCTLR_M); + + /* Enable instruction and data cache */ + sctlr |= SCTLR_C; + sctlr |= SCTLR_I; write_sctlr(sctlr); }