aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorStafford Horne <[email protected]>2020-10-17 21:37:01 +0000
committerStafford Horne <[email protected]>2020-11-11 21:32:20 +0000
commit28b852b1dc351efc6525234c5adfd5bc2ad6d6e1 (patch)
tree31cdaed08f97454cf958da7b8335e9bb9426a240 /net/switchdev/switchdev.c
parentopenrisc: add support for LiteX (diff)
downloadkernel-28b852b1dc351efc6525234c5adfd5bc2ad6d6e1.tar.gz
kernel-28b852b1dc351efc6525234c5adfd5bc2ad6d6e1.zip
openrisc: fix trap for debugger breakpoint signalling
I have been working on getting native Linux GDB support working for the OpenRISC port. The trap signal handler here was wrong in a few ways. During trap handling address (from the EEAR register) is not set by the CPU, so it is not correct to use here. We want to use trap as a break-point so use TRAP_BRKPT. Adding 4 to the pc was incorrect and causing GDB to think the breakpoint was not hit. Fixing these allows GDB to work now. Signed-off-by: Stafford Horne <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions