From 91f828411617247abde3f0ace64389bb2050f794 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Sun, 13 Feb 2022 13:01:59 -0700 Subject: Unhook old mutex handles --- src/util/status.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/util') diff --git a/src/util/status.c b/src/util/status.c index 5e8a355..5672a8c 100644 --- a/src/util/status.c +++ b/src/util/status.c @@ -64,12 +64,6 @@ void status(void) write_cstring(&g_Drawer, os_name, 0xFF0000); write_cstring(&g_Drawer, " v", 0x00FFFF); write_cstring(&g_Drawer, os_info_v, 0x00FFFF); - write_string(&g_Drawer, " #"); - write_10(&g_Drawer, *((unsigned long*)exe_cnt_m.addr)); - /* if (lock_mutex(&exe_cnt_m, SYS_PID) == 0) { - write_10(&g_Drawer, *((unsigned long*)exe_cnt_m.addr)); - release_mutex(&exe_cnt_m, SYS_PID); - } */ // Commands write_string(&g_Drawer, "\nMonitor: Ctrl-A m Exit: Ctrl-A x Timer: Ctrl-T"); @@ -104,29 +98,6 @@ void status(void) write_string(&g_Drawer, " BGR"); } - g_Drawer.x = 0; - g_Drawer.y = 8; - for(int i = 0; i < 128; i++) - write_char(&g_Drawer, ' '); - g_Drawer.x = 0; - g_Drawer.y = 8; - write_string(&g_Drawer, "Timer Counter: "); - if (exe_cnt_m.pid == NULL_PID) { - write_cstring(&g_Drawer, "Free!", 0xFF00FF); - } else { - write_cstring(&g_Drawer, "Locked by ", 0xFF00FF); - if (exe_cnt_m.pid == SYS_PID) - write_cstring(&g_Drawer, "System", 0xFF00FF); - else if (exe_cnt_m.pid == SCHED_PID) - write_cstring(&g_Drawer, "Scheduler", 0xFF00FF); - else { - write_cstring(&g_Drawer, "Process ", 0xFF00FF); - write_c10(&g_Drawer, exe_cnt_m.pid, 0xFF00FF); - } - write_cchar(&g_Drawer, '!', 0xFF00FF); - } - - g_Drawer.x = 0; g_Drawer.y = 9; write_string(&g_Drawer, "SVC IRQ FIQ User/SYS\n"); -- cgit v1.2.1