summaryrefslogtreecommitdiff
path: root/kern/rtmutex_i.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-04-21 10:42:11 +0200
committerRichard Braun <rbraun@sceen.net>2018-04-21 10:49:07 +0200
commitec4ddf8b95585cc3e340dd06df109f83a23b2d77 (patch)
treed70e9c7a52c6c5f60e8d971b0eeb4b275d80bb33 /kern/rtmutex_i.h
parent89ebd57e0bb3a63f2f794ce41dd4c831b4aeb35c (diff)
Fix atomic operations argument types
In preparation of the rework of atomic operations, all atomic function calls are fixed to use fully supported, compatible types. This means that atomic operations ar erestricted to 32-bit and 64-bit, and that value types must be strictly compatible with pointer types.
Diffstat (limited to 'kern/rtmutex_i.h')
-rw-r--r--kern/rtmutex_i.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/rtmutex_i.h b/kern/rtmutex_i.h
index 64ff69a0..373c180f 100644
--- a/kern/rtmutex_i.h
+++ b/kern/rtmutex_i.h
@@ -41,8 +41,8 @@
* the turnstile wait function so that only the highest priority thread
* may lock the mutex.
*/
-#define RTMUTEX_CONTENDED 0x1
-#define RTMUTEX_FORCE_WAIT 0x2
+#define RTMUTEX_CONTENDED ((uintptr_t)0x1)
+#define RTMUTEX_FORCE_WAIT ((uintptr_t)0x2)
#define RTMUTEX_OWNER_MASK (~((uintptr_t)(RTMUTEX_FORCE_WAIT \
| RTMUTEX_CONTENDED)))