Skip to content

Commit

Permalink
ARC: Setup Vector Table Base in early boot
Browse files Browse the repository at this point in the history
Otherwise early boot exceptions such as instructions errors due to
configuration mismatch between kernel and hardware go off to la-la land,
as opposed to hitting the handler and panic()'ing properly.

Signed-off-by: Vineet Gupta <[email protected]>
  • Loading branch information
vineetgarc committed Jun 26, 2013
1 parent 38a9ff6 commit 05b016e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions arch/arc/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ stext:
; Don't clobber r0-r4 yet. It might have bootloader provided info
;-------------------------------------------------------------------

sr @_int_vec_base_lds, [AUX_INTR_VEC_BASE]

#ifdef CONFIG_SMP
; Only Boot (Master) proceeds. Others wait in platform dependent way
; IDENTITY Reg [ 3 2 1 0 ]
Expand Down
2 changes: 0 additions & 2 deletions arch/arc/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ void __cpuinit arc_init_IRQ(void)
{
int level_mask = 0;

write_aux_reg(AUX_INTR_VEC_BASE, _int_vec_base_lds);

/* Disable all IRQs: enable them as devices request */
write_aux_reg(AUX_IENABLE, 0);

Expand Down

0 comments on commit 05b016e

Please sign in to comment.