diff options
Diffstat (limited to 'src/kernel/lib/mutex.c')
-rw-r--r-- | src/kernel/lib/mutex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/lib/mutex.c b/src/kernel/lib/mutex.c index f3ed11f..2664eb0 100644 --- a/src/kernel/lib/mutex.c +++ b/src/kernel/lib/mutex.c @@ -1,6 +1,7 @@ #include "mutex.h" #include <task/task.h> +/* Internal use only. This function is atomic, meaning it cannot be interrupted by a system task switch. */ static uint32_t atomic_exchange(uint32_t* ptr, uint32_t newval) { uint32_t r; asm volatile("xchg (%%ecx), %%eax" : "=a"(r) : "c"(ptr), "a"(newval)); |