X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Frtos%2Frtos.c;h=2bc8910c237e9b95b9b1981291aff9eaf77f57c4;hb=6ad89d61af681e11960082a906357d8e8c3396a1;hp=5fc958db20b52c1c27729674c58bc8fe5ffba489;hpb=c8e643fd9f09849b341942d11866ab45bc7c99a3;p=openocd.git diff --git a/src/rtos/rtos.c b/src/rtos/rtos.c index 5fc958db20..2bc8910c23 100644 --- a/src/rtos/rtos.c +++ b/src/rtos/rtos.c @@ -679,3 +679,19 @@ void rtos_free_threadlist(struct rtos *rtos) rtos->current_thread = 0; } } + +int rtos_read_buffer(struct target *target, target_addr_t address, + uint32_t size, uint8_t *buffer) +{ + if (target->rtos->type->read_buffer) + return target->rtos->type->read_buffer(target->rtos, address, size, buffer); + return ERROR_NOT_IMPLEMENTED; +} + +int rtos_write_buffer(struct target *target, target_addr_t address, + uint32_t size, const uint8_t *buffer) +{ + if (target->rtos->type->write_buffer) + return target->rtos->type->write_buffer(target->rtos, address, size, buffer); + return ERROR_NOT_IMPLEMENTED; +}