From bfb67f41a9e9df3b730d34041be6b4f4a4983c5b Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 22 Oct 2013 00:23:33 +0200 Subject: hwstub: don't touch mmu registers on non-STMP targets, they might not exist Change-Id: Ib18475fd90e0d29ab6d7214116f7a0041584d621 --- utils/hwstub/stub/crt0.S | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/hwstub') diff --git a/utils/hwstub/stub/crt0.S b/utils/hwstub/stub/crt0.S index 5ba71905c9..8b2197823e 100644 --- a/utils/hwstub/stub/crt0.S +++ b/utils/hwstub/stub/crt0.S @@ -5,12 +5,14 @@ start: sub r7, pc, #8 /* Copy running address */ msr cpsr_c, #0xd3 /* enter supervisor mode, disable IRQ/FIQ */ +#ifdef CONFIG_STMP /* Disable MMU, disable caching and buffering; * use low exception range address */ mrc p15, 0, r0, c1, c0, 0 ldr r1, =0x3005 bic r0, r1 mcr p15, 0, r0, c1, c0, 0 +#endif ldr sp, =oc_stackend /* Relocate to right address */ mov r2, r7 -- cgit v1.2.3