diff options
author | Christian Cunningham <cc@localhost> | 2022-02-05 00:34:37 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-05 00:34:37 -0700 |
commit | 4ccbd3a14b90ad444f5a6fd099081d89a2ff98be (patch) | |
tree | 63a9157922cb43117d42c744331e309ed2139822 /src | |
parent | 44ad380cccc36184be13de37df701e1a1e713cf0 (diff) |
Remove old stuff
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/schedule.S | 3 | ||||
-rw-r--r-- | src/util/status.c | 15 |
2 files changed, 2 insertions, 16 deletions
diff --git a/src/sys/schedule.S b/src/sys/schedule.S index dba8bd4..e8ab326 100644 --- a/src/sys/schedule.S +++ b/src/sys/schedule.S @@ -1,6 +1,3 @@ -// TODO: - Scheduler info function -// - Get next thread -// - Yield supervisor call .section ".text" .globl schedule .macro preserve_ctx 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 "); |