diff options
Diffstat (limited to 'arch/sparc64/kernel/setup.c')
-rw-r--r-- | arch/sparc64/kernel/setup.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index 158bd31e15b7..59a70301a6cf 100644 --- a/arch/sparc64/kernel/setup.c +++ b/arch/sparc64/kernel/setup.c | |||
@@ -507,6 +507,11 @@ void __init setup_arch(char **cmdline_p) | |||
507 | /* Work out if we are starfire early on */ | 507 | /* Work out if we are starfire early on */ |
508 | check_if_starfire(); | 508 | check_if_starfire(); |
509 | 509 | ||
510 | /* Now we know enough to patch the __get_cpu_id() | ||
511 | * trampoline used by trap code. | ||
512 | */ | ||
513 | per_cpu_patch(); | ||
514 | |||
510 | boot_flags_init(*cmdline_p); | 515 | boot_flags_init(*cmdline_p); |
511 | 516 | ||
512 | idprom_init(); | 517 | idprom_init(); |
@@ -545,6 +550,9 @@ void __init setup_arch(char **cmdline_p) | |||
545 | smp_setup_cpu_possible_map(); | 550 | smp_setup_cpu_possible_map(); |
546 | 551 | ||
547 | paging_init(); | 552 | paging_init(); |
553 | |||
554 | /* Get boot processor trap_block[] setup. */ | ||
555 | init_cur_cpu_trap(); | ||
548 | } | 556 | } |
549 | 557 | ||
550 | static int __init set_preferred_console(void) | 558 | static int __init set_preferred_console(void) |