Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181211
b: refs/heads/master
c: 49f3bfe
h: refs/heads/master
i:
  181209: e2d5abc
  181207: 129a073
v: v3
  • Loading branch information
Paul Mundt committed Feb 17, 2010
1 parent a731102 commit ba11745
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d5cfcdff793e2f34ec61d902fa5ee0c7e4a2208
refs/heads/master: 49f3bfe9334a4cf86079d2ee1d08e674b58862a9
21 changes: 17 additions & 4 deletions trunk/arch/sh/kernel/cpu/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <asm/elf.h>
#include <asm/io.h>
#include <asm/smp.h>
#include <asm/sh_bios.h>

#ifdef CONFIG_SH_FPU
#define cpu_has_fpu 1
Expand Down Expand Up @@ -342,9 +343,21 @@ asmlinkage void __init sh_cpu_init(void)
speculative_execution_init();
expmask_init();

/*
* Boot processor to setup the FP and extended state context info.
*/
if (raw_smp_processor_id() == 0)
/* Do the rest of the boot processor setup */
if (raw_smp_processor_id() == 0) {
/* Save off the BIOS VBR, if there is one */
sh_bios_vbr_init();

/*
* Setup VBR for boot CPU. Secondary CPUs do this through
* start_secondary().
*/
per_cpu_trap_init();

/*
* Boot processor to setup the FP and extended state
* context info.
*/
init_thread_xstate();
}
}
7 changes: 0 additions & 7 deletions trunk/arch/sh/kernel/traps_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <asm/alignment.h>
#include <asm/fpu.h>
#include <asm/kprobes.h>
#include <asm/sh_bios.h>

#ifdef CONFIG_CPU_SH2
# define TRAP_RESERVED_INST 4
Expand Down Expand Up @@ -848,12 +847,6 @@ void __init trap_init(void)
#ifdef TRAP_UBC
set_exception_table_vec(TRAP_UBC, breakpoint_trap_handler);
#endif

/* Save off the BIOS VBR, if there is one */
sh_bios_vbr_init();

/* Setup VBR for boot cpu */
per_cpu_trap_init();
}

void show_stack(struct task_struct *tsk, unsigned long *sp)
Expand Down

0 comments on commit ba11745

Please sign in to comment.