Add a #define for all MEM_FLAGS
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 28 Oct 2016 20:21:42 +0000 (16:21 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Nov 2016 16:27:40 +0000 (11:27 -0500)
Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/kmalloc.h

index 9c90a25..189667c 100644 (file)
@@ -32,6 +32,7 @@ void *debug_canary;
 #define MEM_ATOMIC                             (1 << 1)
 #define MEM_WAIT                               (1 << 2)
 #define MEM_ERROR                              (1 << 3)
+#define MEM_FLAGS (MEM_ATOMIC | MEM_WAIT | MEM_ERROR)
 
 /* Kmalloc tag flags looks like this:
  *