aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/atomic
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/atomic')
-rw-r--r--src/cpu/atomic/swap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/atomic/swap.h b/src/cpu/atomic/swap.h
index 3584d4e..cbed62c 100644
--- a/src/cpu/atomic/swap.h
+++ b/src/cpu/atomic/swap.h
@@ -8,6 +8,7 @@
/// 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;