From 022dfd0f42962da6c60fbeb5604e1455a07eaaa6 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 20 Jan 2022 16:28:18 -0700 Subject: Added System Timer Hook --- src/util/status.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/util/status.c') diff --git a/src/util/status.c b/src/util/status.c index dd2b899..7abf931 100644 --- a/src/util/status.c +++ b/src/util/status.c @@ -162,6 +162,15 @@ void status(void) "and %0, %0, #3" : "=r"(coren) :: "cc"); write_string(&g_Drawer, "Status Updated by Core #"); write_10(&g_Drawer, coren); + write_string(&g_Drawer, "\nSys Timer Status: "); + coren = *(unsigned long*)SYS_TIMER_CS; + write_10(&g_Drawer, coren); + write_string(&g_Drawer, " : "); + unsigned long long tval = get_time(); + write_hex32(&g_Drawer, (tval >> 32)); + write_hex32(&g_Drawer, tval); + write_char(&g_Drawer, '\n'); + write_10(&g_Drawer, ((unsigned long)tval)/1000000); g_Drawer.x = x; g_Drawer.y = y; -- cgit v1.2.1