[U-Boot] [PATCH v2 1/2] x86: Display correct CS/EIP/EFLAGS when there is an error code

Simon Glass sjg at chromium.org
Sat Jul 18 16:37:18 CEST 2015


On 9 July 2015 at 20:38, Bin Meng <bmeng.cn at 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 at 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 at chromium.org>


More information about the U-Boot mailing list