[riot-notifications] [RIOT-OS/RIOT] cpu/fe310: interrupt handling cleanup (#12276)

kenrabold notifications at github.com
Mon Sep 23 19:52:54 CEST 2019


kenrabold commented on this pull request.



> @@ -292,7 +309,10 @@ char *thread_stack_init(thread_task_func_t task_func,
 void thread_print_stack(void)
 {
     int count = 0;
-    uint32_t *sp = (uint32_t *) sched_active_thread->sp;
+    uint32_t *sp = (uint32_t *) ((sched_active_thread) ? sched_active_thread->sp : NULL);
+
+    if( sp == NULL )
+        return;

Fixed with next commit

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12276#discussion_r327248361
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190923/444cad9e/attachment-0001.htm>


More information about the notifications mailing list