Skip to content

Commit

Permalink
kgdb, x86_64: gdb serial has BX and DX reversed
Browse files Browse the repository at this point in the history
The BX and DX registers in the gdb serial register packet need to be
flipped for gdb to receive the correct data.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
  • Loading branch information
Jason Wessel committed Sep 26, 2008
1 parent d7161a6 commit 95dbf1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-x86/kgdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ enum regnames {
#else /* ! CONFIG_X86_32 */
enum regnames {
GDB_AX, /* 0 */
GDB_DX, /* 1 */
GDB_BX, /* 1 */
GDB_CX, /* 2 */
GDB_BX, /* 3 */
GDB_DX, /* 3 */
GDB_SI, /* 4 */
GDB_DI, /* 5 */
GDB_BP, /* 6 */
Expand Down

0 comments on commit 95dbf1d

Please sign in to comment.