Thread (2 messages) 2 messages, 2 authors, 2015-12-09

[PATCH] mips: make mips_cps_{core_init,boot_vpes} work on mips32r2

From: Nikolay Martynov <hidden>
Date: 2015-12-08 18:30:59
Subsystem: mips, the rest · Maintainers: Thomas Bogendoerfer, Linus Torvalds

mips_cps_{core_init,boot_vpes} had 'mips64r2' hardcoded which
prevented them from being run on mips32. Fix that by choosing
cpu type based on CONFIG_64BIT.

Tested on mt7621.

Signed-off-by: Nikolay Martynov <redacted>
---
 arch/mips/kernel/cps-vec.S | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/arch/mips/kernel/cps-vec.S b/arch/mips/kernel/cps-vec.S
index 8fd5a27..1254a51 100644
--- a/arch/mips/kernel/cps-vec.S
+++ b/arch/mips/kernel/cps-vec.S
@@ -257,7 +257,11 @@ LEAF(mips_cps_core_init)
 	has_mt	t0, 3f
 
 	.set	push
+#ifdef CONFIG_64BIT
 	.set	mips64r2
+#else
+	.set	mips32r2
+#endif
 	.set	mt
 
 	/* Only allow 1 TC per VPE to execute... */
@@ -376,7 +380,11 @@ LEAF(mips_cps_boot_vpes)
 	 nop
 
 	.set	push
+#ifdef CONFIG_64BIT
 	.set	mips64r2
+#else
+	.set	mips32r2
+#endif
 	.set	mt
 
 1:	/* Enter VPE configuration state */
-- 
2.6.3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help