aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
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;