diff options
author | Christian Cunningham <cc@localhost> | 2022-01-21 15:03:55 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-01-21 15:03:55 -0700 |
commit | dfde56396867428de6a81f01689a7a828dc91217 (patch) | |
tree | b361957f370a168ac48177c6c952d38808000071 /src/sys/core.c | |
parent | 367e20fa0c6f15e60d943cf222d41414fffd2318 (diff) |
Added scheduling info output
Diffstat (limited to 'src/sys/core.c')
-rw-r--r-- | src/sys/core.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/sys/core.c b/src/sys/core.c index 1329c12..fc3d9e1 100644 --- a/src/sys/core.c +++ b/src/sys/core.c @@ -23,7 +23,6 @@ void sysinit(void) // Clear System Globals exe_cnt_m.addr = &exe_cnt; exe_cnt_m.pid = NULL_PID; - nextpid = SCHED_PID + 1; rpi_heap_top = &rpi_heap; stimeh = *(unsigned long*)SYS_TIMER_CHI; stimel = *(unsigned long*)SYS_TIMER_CLO; @@ -64,9 +63,12 @@ void sysinit(void) enableirq(); enablefiq(); - //add_thread(testlocal, 0); - //add_thread(testlocal, 1); - //add_thread(testlocal, 3); + add_thread(testlocal, 0, 0); + add_thread(testlocal, 0, 1); + add_thread(testlocal, 0, 1); + add_thread(testlocal, 0, 3); + add_thread(testlocal, 0, 5); + uart_scheduler(); } void testlocal1(void) |