aboutsummaryrefslogtreecommitdiff
path: root/src/cpu/atomic
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-05 14:01:29 -0800
committerChristian Cunningham <cc@localhost>2022-01-05 14:01:29 -0800
commit3a8ed19bf83f11ff00c4904fab2cc083b7e33478 (patch)
tree9d9a6f92f9d74001e969d23ea79ad26f6227fea2 /src/cpu/atomic
parentf3ea4cd0c22f351d8dfffb0e937194c4b526b665 (diff)
Cleaned up/ Standardized
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;