]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Simplify architecture defined exception handling in irq_llsr()
authorBin Meng <bmeng.cn@gmail.com>
Fri, 10 Jul 2015 02:51:23 +0000 (10:51 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:50:51 +0000 (13:50 +0200)
commit2cc55875192dd668b7e135164ceb3f58a5a61805
treef64fbd009f532c794e05fb9290ccb944d450ad35
parent07eb9018ae3e25d5e4a34312fa7f045fd4744eef
x86: Simplify architecture defined exception handling in irq_llsr()

Instead of using switch..case for architecture defined exceptions,
simply unify the handling by printing a message of exception name,
followed by registers dump then halt the CPU.

With this unification, it also fixes the wrong exception numbers
for #MF/#AC/#MC/#XM which should be 16/17/18/19 not 15/16/17/18.

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