From f3ea4cd0c22f351d8dfffb0e937194c4b526b665 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Mon, 3 Jan 2022 21:35:01 -0800 Subject: Added Stack ASM Functions --- src/util/status.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/util') 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; -- cgit v1.2.1