aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-03 21:35:01 -0800
committerChristian Cunningham <cc@localhost>2022-01-03 21:35:01 -0800
commitf3ea4cd0c22f351d8dfffb0e937194c4b526b665 (patch)
treebc0dcb168ba06417a765c588420bdc20068a553c /src/util
parent01af43f3bad5deb061237ebddc577511336de7d5 (diff)
Added Stack ASM Functions
Diffstat (limited to 'src/util')
-rw-r--r--src/util/status.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/status.c b/src/util/status.c
index 1ac08e8..bd529da 100644
--- a/src/util/status.c
+++ b/src/util/status.c
@@ -141,8 +141,7 @@ void status(void)
write_char(&g_Drawer, '\n');
*/
- unsigned long sp;
- asm volatile ("mov %0, sp": "=r"(sp));
+ unsigned long sp = (unsigned long)getsp();
write_hex32(&g_Drawer, sp);
g_Drawer.x = x;