]> git.dujemihanovic.xyz Git - u-boot.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)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jul 2015 16:36:21 +0000 (10:36 -0600)
commit3ccd49cab40603c41dd7d1ada0b971d59b93940d
tree13c4e5f38319b3ca0e890d0a7cc47d8ccba6d730
parent013cf483c9d431e36d4ef2b854ee621cce51b8ce
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