From d95c714c8cfdc5818b0e0f0c99cf2e5be66de202 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 12 Sep 2021 21:51:10 +0300 Subject: Initial physical page manager + Will probably still need a fair bit of tweakind and documentation improvements, but seems to work outside of the kernel. Also no valgrind errors, which is quite promising I guess. --- include/apos/bits.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/apos/bits.h') diff --git a/include/apos/bits.h b/include/apos/bits.h index 77bdde4..79523db 100644 --- a/include/apos/bits.h +++ b/include/apos/bits.h @@ -5,4 +5,8 @@ #define __set_bit(x, y) ((x) |= (y)) #define __clear_bit(x, y) ((x) &= ~(y)) +#define __is_nset(x, y) (__is_set((x), 1 << (y))) +#define __set_nbit(x, y) (__set_bit((x), 1 << (y))) +#define __clear_nbit(x, y) (__clear_bit((x), 1 << (y))) + #endif /* APOS_BITS_H */ -- cgit v1.3