// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2013 */ //#include #include #include #ifdef CONFIG_ARMV8_MULTIENTRY #include #endif DECLARE_GLOBAL_DATA_PTR; #ifdef CONFIG_ARMV8_MULTIENTRY unsigned long gd_ptr_init; /* * secondary_boot_func * this function should be write with asm, here, only for compiling pass */ void secondary_bootup_f(unsigned int x) { __asm__ volatile("mov x18, %0\n" :: "r" (gd_ptr_init) : "memory"); } void cpu_smp_init_r(void) { gd->flags |= GD_FLG_SMP; gd_ptr_init = (unsigned long)gd; } unsigned int get_smp_sp(unsigned int cpuidx) { return gd->start_addr_sp + secondary_sp_size * cpuidx; } #endif