]> git.sur5r.net Git - openocd/commit
rtos: facilitate RTOS SMP handling
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>
Fri, 17 Feb 2017 13:45:00 +0000 (14:45 +0100)
committerMatthias Welwarsky <matthias@welwarsky.de>
Wed, 21 Feb 2018 12:10:02 +0000 (12:10 +0000)
commit293fb9b25faf8c89a9d06d73b83526b86d4c14d8
treeb1a30e24dbf56dae66f1c8a1ec3337cc8c6fd256
parentd301d8b42f0bfe67d76d6f340db6570cc71c876e
rtos: facilitate RTOS SMP handling

The RTOS handlers present OS threads to gdb but the openocd
target layer only knows about CPU cores (hardware threads).
This patch allows closing this gap inside the RTOS handler.

The default implementation just returns the current core, but
a RTOS handler can provide its own function that associates a
an OS thread with a core.

Change-Id: I12cafe50b38a38b28057bc5d3a708aa20bf60515
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
Reviewed-on: http://openocd.zylin.com/3997
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Tested-by: jenkins
src/rtos/rtos.c
src/rtos/rtos.h
src/server/gdb_server.c