aboutsummaryrefslogtreecommitdiff
path: root/src/util/status.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-05 00:34:37 -0700
committerChristian Cunningham <cc@localhost>2022-02-05 00:34:37 -0700
commit4ccbd3a14b90ad444f5a6fd099081d89a2ff98be (patch)
tree63a9157922cb43117d42c744331e309ed2139822 /src/util/status.c
parent44ad380cccc36184be13de37df701e1a1e713cf0 (diff)
Remove old stuff
Diffstat (limited to 'src/util/status.c')
-rw-r--r--src/util/status.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/util/status.c b/src/util/status.c
index 8837e5d..5e8a355 100644
--- a/src/util/status.c
+++ b/src/util/status.c
@@ -147,21 +147,10 @@ void status(void)
sp = (unsigned long)getsysstack();
write_hex32(&g_Drawer, sp);
write_char(&g_Drawer, '\n');
- /* WRITE Stack Values
- for(unsigned long i = 1; i <= 14; i++) {
- write_hex32(&g_Drawer, *(unsigned long*)(0x2000 - i*4));
- if(i % 6 == 0) {
- write_char(&g_Drawer, '\n');
- } else {
- write_char(&g_Drawer, ' ');
- }
- }
- write_char(&g_Drawer, '\n');
- */
unsigned long coren;
asm volatile (
- "mrc p15, #0, %0, c0, c0, #5\n"
- "and %0, %0, #3" : "=r"(coren) :: "cc");
+ "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);
write_string(&g_Drawer, "\nSys Timer Status ");