]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
x86: Display correct CS/EIP/EFLAGS when there is an error code
authorBin Meng <bmeng.cn@gmail.com>
Fri, 10 Jul 2015 02:38:32 +0000 (10:38 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:50:50 +0000 (13:50 +0200)
commit07eb9018ae3e25d5e4a34312fa7f045fd4744eef
tree86003480e81fd7eacc162fd12ef874c09faa048f
parentbd3ac789f74e8add581eb967dfedebe3e183c13d
x86: Display correct CS/EIP/EFLAGS when there is an error code

Some exceptions cause an error code to be saved on the current stack
after the EIP value. We should extract CS/EIP/EFLAGS from different
position on the stack based on the exception number.

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