diff options
author | Christian Cunningham <cc@localhost> | 2022-02-18 15:53:06 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-18 15:53:06 -0700 |
commit | 1eb62e377474e639a9a685d37c52cc42b7372ccf (patch) | |
tree | 409859f3a078eade7964e4162acc9738ff660677 | |
parent | ce4e86f3806e599a2abf014b0b0fc85a5e6c4e37 (diff) |
More priorities
Cortex-a7 System
-rw-r--r-- | Common.mk | 2 | ||||
-rw-r--r-- | include/sys/schedule.h | 2 | ||||
-rw-r--r-- | src/sys/schedule.c | 1 |
3 files changed, 2 insertions, 3 deletions
@@ -15,7 +15,7 @@ QEMU = qemu-system-arm GDB = gdb-multiarch CFLAGS = -mcpu=cortex-a7 -fpic -ffreestanding -std=gnu99 -O3 -Wall -Wextra -nostdlib -Iinclude -g AFLAGS = -mcpu=cortex-a7 -Iinclude -g -QFLAGS = -M raspi2 -cpu arm1176 -m 1G +QFLAGS = -M raspi2b -cpu cortex-a7 -m 1G QFLAGS += -chardev stdio,id=char0,mux=on,logfile=serial.log,signal=off -serial chardev:char0 -mon chardev=char0 #QFLAGS += -serial pipe:/tmp/guest QFLAGS += -device usb-kbd diff --git a/include/sys/schedule.h b/include/sys/schedule.h index a76b52b..aa0e4c3 100644 --- a/include/sys/schedule.h +++ b/include/sys/schedule.h @@ -4,7 +4,7 @@ #define TQUEUE_MAX 0x100 #define STACK_SIZE 0x4000 #define TQUEUE_CNT 4 -#define PRIORITIES 6 +#define PRIORITIES 8 #define MAX_THREADS TQUEUE_MAX*PRIORITIES*TQUEUE_CNT #define STACK_DRAW_YOFF 320 #define STACK_DRAW_WIDTH 32 diff --git a/src/sys/schedule.c b/src/sys/schedule.c index 3374f7e..dd59891 100644 --- a/src/sys/schedule.c +++ b/src/sys/schedule.c @@ -139,7 +139,6 @@ void uart_scheduler(void) while (roffset != trb->woffset) { uart_hex((unsigned long)trb->queue[roffset]); uart_char(' '); - //kmemshow((void*)trb->queue[roffset], 4*6); kmemshow32((void*)trb->queue[roffset], 7); roffset++; roffset %= TQUEUE_MAX; |