Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1185919 > unrolled thread
| Started by | Chris Brandt <chris.brandt@renesas.com> |
|---|---|
| First post | 2015-07-16 16:40 +0200 |
| Last post | 2015-07-16 16:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/2] ARM: xip: Can't use text area as stack Chris Brandt <chris.brandt@renesas.com> - 2015-07-16 16:40 +0200
| From | Chris Brandt <chris.brandt@renesas.com> |
|---|---|
| Date | 2015-07-16 16:40 +0200 |
| Subject | [PATCH 1/2] ARM: xip: Can't use text area as stack |
| Message-ID | <pMSun-13y-31@gated-at.bofh.it> |
For an XIP_KERNEL build, ROM and RAM are separated, so we can't reserve
code space to serve as a temporary stack.
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
---
arch/arm/mm/proc-v7.S | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
index 0716bbe..8559449 100644
--- a/arch/arm/mm/proc-v7.S
+++ b/arch/arm/mm/proc-v7.S
@@ -412,7 +412,11 @@ __v7_pj4b_setup:
#endif /* CONFIG_CPU_PJ4B */
__v7_setup:
+#ifndef CONFIG_XIP_KERNEL
adr r12, __v7_setup_stack @ the local stack
+#else
+ ldr r12, =PLAT_PHYS_OFFSET @ the local stack
+#endif
stmia r12, {r0-r5, r7, r9, r11, lr}
bl v7_invalidate_l1
ldmia r12, {r0-r5, r7, r9, r11, lr}
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web