MIPS: Netlogic: Initialization when !CONFIG_SMP
The core initialization and reset vector setup needs to be done even when booting uniprocessor. Move this code from smp.c to setup.c Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/5428/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:

committed by
Ralf Baechle

parent
9584c55a5c
commit
571886b2a5
@@ -196,6 +196,7 @@ void __init prom_init(void)
|
||||
{
|
||||
int *argv, *envp; /* passed as 32 bit ptrs */
|
||||
struct psb_info *prom_infop;
|
||||
void *reset_vec;
|
||||
#ifdef CONFIG_SMP
|
||||
int i;
|
||||
#endif
|
||||
@@ -208,6 +209,11 @@ void __init prom_init(void)
|
||||
nlm_prom_info = *prom_infop;
|
||||
nlm_init_node();
|
||||
|
||||
/* Update reset entry point with CPU init code */
|
||||
reset_vec = (void *)CKSEG1ADDR(RESET_VEC_PHYS);
|
||||
memcpy(reset_vec, (void *)nlm_reset_entry,
|
||||
(nlm_reset_entry_end - nlm_reset_entry));
|
||||
|
||||
nlm_early_serial_setup();
|
||||
build_arcs_cmdline(argv);
|
||||
prom_add_memory();
|
||||
|
Reference in New Issue
Block a user