
18 Jul
2015
18 Jul
'15
4:37 p.m.
On 9 July 2015 at 20:38, Bin Meng bmeng.cn@gmail.com wrote:
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
Changes in v2:
- Use enum for x86 exception numbers
arch/x86/cpu/interrupts.c | 29 ++++++++++++++++++++++++++++- arch/x86/include/asm/interrupt.h | 24 ++++++++++++++++++++++++ arch/x86/include/asm/ptrace.h | 16 +++++++++++++--- 3 files changed, 65 insertions(+), 4 deletions(-)
Acked-by: Simon Glass sjg@chromium.org