38a401cb10b4971de6a59f5e5617ab480ba14270
[pintos-anon] / src / threads / palloc.h
1 #ifndef THREADS_PALLOC_H
2 #define THREADS_PALLOC_H
3
4 #include <stdint.h>
5
6 enum palloc_flags
7   {
8     PAL_ASSERT = 001,           /* Panic on failure. */
9     PAL_ZERO = 002,             /* Zero page contents. */
10     PAL_USER = 004              /* User page. */
11   };
12
13 void palloc_init (void);
14 void *palloc_get (enum palloc_flags);
15 void palloc_free (void *);
16
17 #endif /* threads/palloc.h */