summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index d9d1e85d11..cfa15c2998 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -78,8 +78,7 @@
78/*---------------------------------------------------*/ 78/*---------------------------------------------------*/
79extern char ata_device; 79extern char ata_device;
80extern int ata_io_address; 80extern int ata_io_address;
81extern int num_threads[]; 81extern struct core_entry cores[NUM_CORES];
82extern const char *thread_name[][MAXTHREADS];
83 82
84#ifdef HAVE_LCD_BITMAP 83#ifdef HAVE_LCD_BITMAP
85/* Test code!!! */ 84/* Test code!!! */
@@ -113,10 +112,10 @@ bool dbg_os(void)
113 } 112 }
114#else 113#else
115 lcd_puts(0, 0, "Stack usage:"); 114 lcd_puts(0, 0, "Stack usage:");
116 for(i = 0; i < num_threads[CURRENT_CORE];i++) 115 for(i = 0; i < cores[CURRENT_CORE].num_threads;i++)
117 { 116 {
118 usage = thread_stack_usage(i); 117 usage = thread_stack_usage(i);
119 snprintf(buf, 32, "%s: %d%%", thread_name[CURRENT_CORE][i], usage); 118 snprintf(buf, 32, "%s: %d%%", cores[CURRENT_CORE].threads[i].name, usage);
120 lcd_puts(0, 1+i, buf); 119 lcd_puts(0, 1+i, buf);
121 } 120 }
122#endif 121#endif