Skip to contentSkip to conversation

powerpc/83xx: fix compilation error for MPC8315ERDB

PATCH New Nikhil Badola 3 participants 3 messages Dec 20, 2013 – Jan 3, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/83xx: fix compilation error for MPC8315ERDB

From: Ramneek Mehresh <[email protected]>

Defines get_svr() for 83xx devices

---
 arch/powerpc/cpu/mpc83xx/start.S | 5 +++++
 1 file changed, 5 insertions(+)
arch/powerpc/cpu/mpc83xx/start.S +5 -0
index b4fafe6..7f74a50 100644
@@ -120,6 +120,11 @@ disable_addr_trans:
 	mtspr	SRR1, r3
 	rfi
 
+	.globl get_svr
+get_svr:
+	mfspr	r3, SVR
+	blr
+
 	.globl get_pvr
 get_pvr:
 	mfspr	r3, PVR
Signature · 1 line
1.7.11.7
#1 lore raw

PATCH 1/1 powerpc/83xx: fix compilation error for MPC8315ERDB

Quoted 16 lines · Nikhil Badola

From: Ramneek Mehresh <[email protected]>

Defines get_svr() for 83xx devices

---
 arch/powerpc/cpu/mpc83xx/start.S | 5 +++++
 1 file changed, 5 insertions(+)
arch/powerpc/cpu/mpc83xx/start.S +0 -0
index b4fafe6..7f74a50 100644
@@ -120,6 +120,11 @@ disable_addr_trans:
 	mtspr	SRR1, r3

arch/powerpc/cpu/mpc83xx/start.S disable_addr_trans: · line 130

Quoted 10 lines
arch/powerpc/cpu/mpc83xx/start.S +5 -0
 	rfi
 
+	.globl get_svr
+get_svr:
+	mfspr	r3, SVR
+	blr
+
 	.globl get_pvr
 get_pvr:
 	mfspr	r3, PVR

Please share how to reproduce the compilation error. I don't see it.

York

#2 lore raw

PATCH 1/1 powerpc/83xx: fix compilation error for MPC8315ERDB

In reply to Nikhil Badola
Quoted 15 lines · Nikhil Badola

From: Ramneek Mehresh <[email protected]>

Defines get_svr() for 83xx devices

---
 arch/powerpc/cpu/mpc83xx/start.S | 5 +++++
 1 file changed, 5 insertions(+)
arch/powerpc/cpu/mpc83xx/start.S +0 -0
index b4fafe6..7f74a50 100644
@@ -120,6 +120,11 @@ disable_addr_trans:
 	mtspr	SRR1, r3

arch/powerpc/cpu/mpc83xx/start.S disable_addr_trans: · line 130

Quoted 10 lines
arch/powerpc/cpu/mpc83xx/start.S +5 -0
 	rfi
 
+	.globl get_svr
+get_svr:
+	mfspr	r3, SVR
+	blr
+
 	.globl get_pvr
 get_pvr:
 	mfspr	r3, PVR

Instead of this, how about turning these into straightforward non-subarch-specific inline functions?

-Scott