Skip to contentSkip to conversation

Fix bogus paca->_current initialization

PATCH New Benjamin Herrenschmidt 1 participant 1 message May 7, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Fix bogus paca->_current initialization

When doing lockdep, I had two patches to initialize paca->_current early. One bogus, and one correct. Unfortunately both got merged as the bad one ended up being part of the main lockdep patch by mistake. This causes memory corruption at boot. This patch removes the offending code.

---

 arch/powerpc/kernel/head_64.S |    4 ----
 1 file changed, 4 deletions(-)
arch/powerpc/kernel/head_64.S +0 -4
@@ -1517,10 +1517,6 @@ _INIT_STATIC(start_here_multiplatform)
 	addi	r2,r2,0x4000
 	add	r2,r2,r26
 
-	/* Set initial ptr to current */
-	LOAD_REG_IMMEDIATE(r4, init_task)
-	std	r4,PACACURRENT(r13)
-
 	/* Do very early kernel initializations, including initial hash table,
 	 * stab and slb setup before we turn on relocation.	*/