aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-19 13:40:17 -0700
committerChristian Cunningham <cc@localhost>2022-02-19 13:40:17 -0700
commit9de5e07bc3920d4b03903eb5b78847973075059b (patch)
treecd0c23664beccb4c53f532650d94b722dec5f453 /src/util
parent5419a7174ef491427797196903c35ce921129f27 (diff)
Added comments and cleanup
Diffstat (limited to 'src/util')
-rw-r--r--src/util/status.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/status.c b/src/util/status.c
index 614581e..1d3894b 100644
--- a/src/util/status.c
+++ b/src/util/status.c
@@ -100,6 +100,7 @@ void status(void)
write_string(&g_Drawer, " BGR");
}
+ // Core Stacks
g_Drawer.x = 0;
g_Drawer.y = 5;
write_string(&g_Drawer, "SVC IRQ FIQ User/SYS\n");
@@ -107,7 +108,6 @@ void status(void)
write_char(&g_Drawer, ' ');
g_Drawer.x = 0;
g_Drawer.y = 6;
-
unsigned long sp = (unsigned long)getsvcstack();
write_hex32(&g_Drawer, sp);
write_char(&g_Drawer, ' ');
@@ -120,12 +120,16 @@ void status(void)
sp = (unsigned long)getsysstack();
write_hex32(&g_Drawer, sp);
write_char(&g_Drawer, '\n');
+
+ // Report Core that updated status
unsigned long coren;
asm volatile (
"mrc p15, #0, %0, c0, c0, #5\n"
"and %0, %0, #3" : "=r"(coren) :: "cc");
write_string(&g_Drawer, "Status Updated by Core #");
write_10(&g_Drawer, coren);
+
+ // Report Sys Timer Stataus
write_string(&g_Drawer, "\nSys Timer Status ");
coren = *(volatile unsigned long*)SYS_TIMER_CS;
write_10(&g_Drawer, coren);
@@ -142,6 +146,4 @@ void status(void)
g_Drawer.x = x;
g_Drawer.y = y;
-
- draw_stacks();
}