summaryrefslogtreecommitdiff
path: root/kern/bitmap.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-01-03 23:54:23 +0100
committerRichard Braun <rbraun@sceen.net>2014-01-03 23:54:23 +0100
commitb53c5990ccc688e03d120c87940c7024eaca4813 (patch)
tree31f930608f9f140e6bccc8f2d5285cd3f1fb61f4 /kern/bitmap.h
parent99cef9617922016bda314a6e21b499e17e1af56e (diff)
Update calls to atomic operations
Make spin locks and mutexes encode their state on an int rather than a long.
Diffstat (limited to 'kern/bitmap.h')
-rw-r--r--kern/bitmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/kern/bitmap.h b/kern/bitmap.h
index 05741b3a..28e51c35 100644
--- a/kern/bitmap.h
+++ b/kern/bitmap.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013 Richard Braun.
+ * Copyright (c) 2013-2014 Richard Braun.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -73,7 +73,7 @@ bitmap_set_atomic(unsigned long *bm, int bit)
if (bit >= LONG_BIT)
bitmap_lookup(bm, bit);
- atomic_or(bm, bitmap_mask(bit));
+ atomic_or_ulong(bm, bitmap_mask(bit));
}
static inline void
@@ -91,7 +91,7 @@ bitmap_clear_atomic(unsigned long *bm, int bit)
if (bit >= LONG_BIT)
bitmap_lookup(bm, bit);
- atomic_and(bm, ~bitmap_mask(bit));
+ atomic_and_ulong(bm, ~bitmap_mask(bit));
}
static inline int