From 49064f41a2c731cbdfaf6605f32c9cfb7cc0dfd4 Mon Sep 17 00:00:00 2001 From: bhgv Date: Tue, 12 May 2020 13:38:53 +0300 Subject: support of FreeRTOS riscV-64 (k210 cpu). 2nd step --- libiot/freertos/adds.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libiot/freertos') diff --git a/libiot/freertos/adds.c b/libiot/freertos/adds.c index 3eede33..f2beaa6 100644 --- a/libiot/freertos/adds.c +++ b/libiot/freertos/adds.c @@ -59,6 +59,9 @@ #include + +void panic(const char*); + #define THREAD_LOCAL_STORAGE_POINTER_ID 0 // Reference to lua_thread, which is created in app_main @@ -134,7 +137,7 @@ void uxSetLuaState(lua_State* L) { if (!lua_rtos_tcb->lthread) { lua_rtos_tcb->lthread = calloc(1, sizeof(lthread_t)); if (lua_rtos_tcb->lthread == NULL) { - panic(); + panic("No thread TLS!"); } //assert(lua_rtos_tcb->lthread); } -- cgit v1.2.3