Martin Schmidt uploaded patch set #2 to this change.

View Change

src/arch/x86: Fix register accesses for x86_64 debugging

Code that interacts with GDB was accessing the eip and eflags fields in
the eregs struct.
Because those registers are rip and rflags in x86_64, compilation would
fail with x86_64 + debugging enabled.

Fix compilation by accessing the fields with a macro
which expands to the corresponding x86_64 or x86 registers.

Signed-off-by: Martin Schmidt <martin.schmidt@epita.fr>
Change-Id: I07183fe84d083e79ccfda19df82e87c374aed84a
---
M src/arch/x86/exception.c
M src/arch/x86/include/arch/registers.h
2 files changed, 12 insertions(+), 7 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/45032/2

To view, visit change 45032. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I07183fe84d083e79ccfda19df82e87c374aed84a
Gerrit-Change-Number: 45032
Gerrit-PatchSet: 2
Gerrit-Owner: Martin Schmidt
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus@gmail.com>
Gerrit-MessageType: newpatchset