@@ -413,7 +413,7 @@ ENDPROC(secondary_startup)
ENDPROC(secondary_startup_arm)
/*
- * r6 = &secondary_data
+ * r7 = &secondary_data
*/
ENTRY(__secondary_switched)
ldr sp, [r7, #12] @ get secondary_data.stack
@@ -443,6 +443,7 @@ __secondary_data:
* r2 = atags or dtb pointer
* r4 = TTBR pointer (low word)
* r5 = TTBR pointer (high word if LPAE)
+ * r7 = secondary_data pointer (SMP)
* r9 = processor ID
* r13 = *virtual* address to jump to upon completion
*/
@@ -480,6 +481,7 @@ ENDPROC(__enable_mmu)
* r0 = cp#15 control register
* r1 = machine ID
* r2 = atags or dtb pointer
+ * r7 = secondary_data pointer (SMP)
* r9 = processor ID
* r13 = *virtual* address to jump to upon completion
*
Fix secondary_data pointer register and document other occurrences in SMP boot code. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> --- arch/arm/kernel/head.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)