From 3a8ed19bf83f11ff00c4904fab2cc083b7e33478 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Wed, 5 Jan 2022 14:01:29 -0800 Subject: Cleaned up/ Standardized --- src/cpu/atomic/swap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cpu/atomic') 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; -- cgit v1.2.1