Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <vgupta@synopsys.com>

+2 -2
+2
arch/arc/kernel/head.S
··· 27 27 ; Don't clobber r0-r4 yet. It might have bootloader provided info 28 28 ;------------------------------------------------------------------- 29 29 30 + sr @_int_vec_base_lds, [AUX_INTR_VEC_BASE] 31 + 30 32 #ifdef CONFIG_SMP 31 33 ; Only Boot (Master) proceeds. Others wait in platform dependent way 32 34 ; IDENTITY Reg [ 3 2 1 0 ]
-2
arch/arc/kernel/irq.c
··· 32 32 { 33 33 int level_mask = 0; 34 34 35 - write_aux_reg(AUX_INTR_VEC_BASE, _int_vec_base_lds); 36 - 37 35 /* Disable all IRQs: enable them as devices request */ 38 36 write_aux_reg(AUX_IENABLE, 0); 39 37