/* Stack space used when we detect a bad kernel stack pointer, and early in SMP boots before relocation is enabled.  */
static void __init emergency_stack_init(void)
/* Stack space used when we detect a bad kernel stack pointer, and early in SMP boots before relocation is enabled.  */
static void __init emergency_stack_init(void)
{
	unsigned long limit;
	unsigned int i;
	limit = min(0x10000000ULL, lmb.rmo_size);
	for_each_possible_cpu(i) {
		unsigned long sp;
		sp  = lmb_alloc_base(THREAD_SIZE, THREAD_SIZE, limit);
		sp += THREAD_SIZE;
		paca[i].emergency_sp = __va(sp);
	}
}