diff options
| author | bhgv <bhgv.empire@gmail.com> | 2020-05-12 13:38:53 +0300 |
|---|---|---|
| committer | bhgv <bhgv.empire@gmail.com> | 2020-05-12 13:38:53 +0300 |
| commit | 49064f41a2c731cbdfaf6605f32c9cfb7cc0dfd4 (patch) | |
| tree | 17a0804a69e8ca128cf53493fc877d0fcdebf3c8 /libiot/freertos | |
| parent | 9b5d5f8a4640dbecdc87e5b6e7e95f71018632cf (diff) | |
support of FreeRTOS riscV-64 (k210 cpu). 2nd step
Diffstat (limited to 'libiot/freertos')
| -rw-r--r-- | libiot/freertos/adds.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <malloc.h> + +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); } |
