diff options
Diffstat (limited to 'arch/powerpc/kernel/misc_32.S')
| -rw-r--r-- | arch/powerpc/kernel/misc_32.S | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S index 094bd9821ad..402560e957b 100644 --- a/arch/powerpc/kernel/misc_32.S +++ b/arch/powerpc/kernel/misc_32.S | |||
| @@ -694,6 +694,17 @@ _GLOBAL(kernel_thread) | |||
| 694 | addi r1,r1,16 | 694 | addi r1,r1,16 |
| 695 | blr | 695 | blr |
| 696 | 696 | ||
| 697 | #ifdef CONFIG_SMP | ||
| 698 | _GLOBAL(start_secondary_resume) | ||
| 699 | /* Reset stack */ | ||
| 700 | rlwinm r1,r1,0,0,(31-THREAD_SHIFT) /* current_thread_info() */ | ||
| 701 | addi r1,r1,THREAD_SIZE-STACK_FRAME_OVERHEAD | ||
| 702 | li r3,0 | ||
| 703 | std r3,0(r1) /* Zero the stack frame pointer */ | ||
| 704 | bl start_secondary | ||
| 705 | b . | ||
| 706 | #endif /* CONFIG_SMP */ | ||
| 707 | |||
| 697 | /* | 708 | /* |
| 698 | * This routine is just here to keep GCC happy - sigh... | 709 | * This routine is just here to keep GCC happy - sigh... |
| 699 | */ | 710 | */ |
