aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-19 12:05:16 -0700
committerChristian Cunningham <cc@localhost>2022-01-19 12:05:16 -0700
commit572b5f4df1117b95f4a90a74da43da190750c089 (patch)
treefe0723425ddc6478f9b84627b2fdbe0c90f4c8be
parent466ef472e5d0e2a83600b07da0229d41e78f9d9c (diff)
Output user stack pointer
-rw-r--r--src/util/status.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/status.c b/src/util/status.c
index be19287..ac801d1 100644
--- a/src/util/status.c
+++ b/src/util/status.c
@@ -139,6 +139,9 @@ void status(void)
write_char(&g_Drawer, ' ');
sp = (unsigned long)getfiqstack();
write_hex32(&g_Drawer, sp);
+ write_char(&g_Drawer, ' ');
+ sp = (unsigned long)getsysstack();
+ write_hex32(&g_Drawer, sp);
write_char(&g_Drawer, '\n');
for(unsigned long i = 1; i <= 14; i++) {
write_hex32(&g_Drawer, *(unsigned long*)(0x4000 - i*4));