aboutsummaryrefslogtreecommitdiff
path: root/src/rtos/rtos.c
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2020-12-31 13:40:49 -0800
committerTim Newsome <tim@sifive.com>2020-12-31 13:40:49 -0800
commit11b8110443bbd158f73c7bf00a52bd6863d6b42f (patch)
tree23cb0e565256d2c94b0774acbf8156f19e409ef2 /src/rtos/rtos.c
parentb8620764c09cbb05d8179fd5f520110fee114417 (diff)
parentc69b4deae36a7bcbab5df80ec2a5dbfd652e25ac (diff)
downloadriscv-openocd-11b8110443bbd158f73c7bf00a52bd6863d6b42f.zip
riscv-openocd-11b8110443bbd158f73c7bf00a52bd6863d6b42f.tar.gz
riscv-openocd-11b8110443bbd158f73c7bf00a52bd6863d6b42f.tar.bz2
Merge branch 'master' into from_upstream
Conflicts: .github/workflows/snapshot.yml .gitmodules src/flash/nor/drivers.c src/helper/jep106.inc src/rtos/hwthread.c src/target/riscv/riscv.c src/target/target.c Change-Id: I62f65e10d15dcda4c405d4042cce1d96f8e1680a
Diffstat (limited to 'src/rtos/rtos.c')
-rw-r--r--src/rtos/rtos.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c
index 4798f04..b391b2c 100644
--- a/src/rtos/rtos.c
+++ b/src/rtos/rtos.c
@@ -59,6 +59,8 @@ static struct rtos_type *rtos_types[] = {
NULL
};
+static int rtos_try_next(struct target *target);
+
int rtos_thread_packet(struct connection *connection, const char *packet, int packet_size);
int rtos_smp_init(struct target *target)
@@ -632,7 +634,7 @@ int rtos_generic_stack_read(struct target *target,
return ERROR_OK;
}
-int rtos_try_next(struct target *target)
+static int rtos_try_next(struct target *target)
{
struct rtos *os = target->rtos;
struct rtos_type **type = rtos_types;