Skip to content

Commit 05b016e

Browse files
committed
ARC: Setup Vector Table Base in early boot
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]>
1 parent 38a9ff6 commit 05b016e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arc/kernel/head.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ stext:
2727
; Don't clobber r0-r4 yet. It might have bootloader provided info
2828
;-------------------------------------------------------------------
2929

30+
sr @_int_vec_base_lds, [AUX_INTR_VEC_BASE]
31+
3032
#ifdef CONFIG_SMP
3133
; Only Boot (Master) proceeds. Others wait in platform dependent way
3234
; IDENTITY Reg [ 3 2 1 0 ]

arch/arc/kernel/irq.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ void __cpuinit arc_init_IRQ(void)
3232
{
3333
int level_mask = 0;
3434

35-
write_aux_reg(AUX_INTR_VEC_BASE, _int_vec_base_lds);
36-
3735
/* Disable all IRQs: enable them as devices request */
3836
write_aux_reg(AUX_IENABLE, 0);
3937

0 commit comments

Comments
 (0)