]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
x86: Call cpu_init_interrupts() from interrupt_init()
authorBin Meng <bmeng.cn@gmail.com>
Thu, 20 Nov 2014 08:10:49 +0000 (16:10 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 25 Nov 2014 13:34:02 +0000 (06:34 -0700)
commit4372a9eca5561ec21277b616b5223cf23ab526ca
tree7cdca6fa7bc4553c1c079feb03a01fc0eb95abe4
parent18739e2ccc66e13dba10a7cb4578910daf455f01
x86: Call cpu_init_interrupts() from interrupt_init()

Currently cpu_init_interrupts() is called from cpu_init_r() to
setup the interrupt and exception of the cpu core, but at that
time the i8259 has not been initialized to mask all the irqs
and remap the master i8259 interrupt vector base, so the whole
system is at risk of being interrupted, and if interrupted,
wrong interrupt/exception message is shown.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/cpu.c
arch/x86/lib/pcat_interrupts.c