diff options
author | Christian Cunningham <cc@localhost> | 2022-03-16 22:28:33 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-16 22:28:33 -0700 |
commit | a9f63b8cdb930d079cc69d492fe44dc8224c1e03 (patch) | |
tree | c97c9f84f5caa2b0cc77850c21f33b9f5cefaecb /include | |
parent | a3732c11ad3bcd2c01a36d0a82a6f310fe8557af (diff) |
More comments
Diffstat (limited to 'include')
-rw-r--r-- | include/cpu/atomic/swap.h | 1 | ||||
-rw-r--r-- | include/sys/schedule.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/include/cpu/atomic/swap.h b/include/cpu/atomic/swap.h index 57a5add..87cf382 100644 --- a/include/cpu/atomic/swap.h +++ b/include/cpu/atomic/swap.h @@ -8,7 +8,6 @@ /// https://www.cs.uic.edu/~jbell/CourseNotes/OperatingSystems/3_Processes.html /// https://developer.arm.com/documentation/dht0008/a/arm-synchronization-primitives/practical-uses/implementing-a-semaphore?lang=en -// TODO: Once scheduling works, have a failed lock put thread in waiting state static inline void atm_lock(unsigned long pid, unsigned long* addr) { unsigned long tmp, current_lock_value; diff --git a/include/sys/schedule.h b/include/sys/schedule.h index 33d19dd..12c8fec 100644 --- a/include/sys/schedule.h +++ b/include/sys/schedule.h @@ -1,7 +1,7 @@ #ifndef SYS_SCHEDULE_H #define SYS_SCHEDULE_H -#define TQUEUE_MAX 0x100 +#define TQUEUE_MAX 0x800 #define STACK_SIZE 0x4000 #define TQUEUE_CNT 3 #define PRIORITIES 8 |