Skip to content

Commit 2b1baf6

Browse files
tbr-ttandrewboie
authored andcommitted
debug: openocd: Support for building on SPARC
This adds the pieces needed for openocd.c to compile when ARCH=SPARC. In particular, it allows the tracing.osawareness.openocd sample to build and run. Signed-off-by: Martin Åberg <[email protected]>
1 parent b5bab42 commit 2b1baf6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

subsys/debug/openocd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ size_t _kernel_openocd_offsets[] = {
7171
#elif defined(CONFIG_RISCV)
7272
[OPENOCD_OFFSET_T_STACK_PTR] = offsetof(struct k_thread,
7373
callee_saved.sp),
74+
#elif defined(CONFIG_SPARC)
75+
[OPENOCD_OFFSET_T_STACK_PTR] = offsetof(struct k_thread,
76+
callee_saved.o6),
7477
#else
7578
/* Use a special value so that OpenOCD knows that obtaining the stack
7679
* pointer is not possible on this particular architecture.

0 commit comments

Comments
 (0)