From e91ab9c1a169998b202d24134dd7c615f55df425 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Thu, 28 Jun 2018 14:26:52 +0100 Subject: [PATCH] Thread: fix rtx thread type --- rtos/Thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtos/Thread.cpp b/rtos/Thread.cpp index cc8fcda1bf..d8a24e3d1c 100644 --- a/rtos/Thread.cpp +++ b/rtos/Thread.cpp @@ -274,7 +274,7 @@ uint32_t Thread::free_stack() { #if defined(MBED_OS_BACKEND_RTX5) if (_tid != NULL) { - os_thread_t *thread = (os_thread_t *)_tid; + mbed_rtos_storage_thread_t *thread = (mbed_rtos_storage_thread_t *)_tid; size = (uint32_t)thread->sp - (uint32_t)thread->stack_mem; } #endif @@ -289,7 +289,7 @@ uint32_t Thread::used_stack() { #if defined(MBED_OS_BACKEND_RTX5) if (_tid != NULL) { - os_thread_t *thread = (os_thread_t *)_tid; + mbed_rtos_storage_thread_t *thread = (mbed_rtos_storage_thread_t *)_tid; size = ((uint32_t)thread->stack_mem + thread->stack_size) - thread->sp; } #endif @@ -304,7 +304,7 @@ uint32_t Thread::max_stack() { if (_tid != NULL) { #if defined(MBED_OS_BACKEND_RTX5) - os_thread_t *thread = (os_thread_t *)_tid; + mbed_rtos_storage_thread_t *thread = (mbed_rtos_storage_thread_t *)_tid; uint32_t high_mark = 0; while (((uint32_t *)(thread->stack_mem))[high_mark] == 0xE25A2EA5) high_mark++;