From f81bf65484fa8c81a1886f456c71f1e6eebe84e9 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Tue, 10 Aug 2010 20:39:57 +0200 Subject: Added a lot of comments in kernel code. A bit of cleaning too. --- src/kernel/lib/mutex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/kernel/lib/mutex.c') 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 +/* 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)); -- cgit v1.2.3