From 6d15b82a3e622811a1d4a74229b746cf2e9ba14b Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 4 Jun 2019 23:47:23 +0200 Subject: [PATCH] cortex_a9::regs: init U bit for unaligned access --- src/cortex_a9/regs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cortex_a9/regs.rs b/src/cortex_a9/regs.rs index fd8eda4..15f1560 100644 --- a/src/cortex_a9/regs.rs +++ b/src/cortex_a9/regs.rs @@ -75,6 +75,6 @@ pub fn dccisw() { /// Enable I-Cache and D-Cache pub fn sctlr() { unsafe { - asm!("mcr p15, 0, $0, c1, c0, 0" :: "r" (0x1004) :: "volatile"); + asm!("mcr p15, 0, $0, c1, c0, 0" :: "r" (0x00401004) :: "volatile"); } }