Swap names of power_off and do_power_off().
[pintos-anon] / src / threads / palloc.h
index 9bd076f4214b3f493fcbdfee955b758a5b20a221..38a401cb10b4971de6a59f5e5617ab480ba14270 100644 (file)
@@ -1,20 +1,17 @@
-#ifndef HEADER_PALLOC_H
-#define HEADER_PALLOC_H 1
-
-/* Page allocator.  Hands out memory in page-size chunks.
-   See malloc.h for an allocator that hands out smaller
-   chunks. */
+#ifndef THREADS_PALLOC_H
+#define THREADS_PALLOC_H
 
 #include <stdint.h>
 
 enum palloc_flags
   {
     PAL_ASSERT = 001,           /* Panic on failure. */
-    PAL_ZERO = 002              /* Zero page contents. */
+    PAL_ZERO = 002,             /* Zero page contents. */
+    PAL_USER = 004              /* User page. */
   };
 
-void palloc_init (uint8_t *start, uint8_t *end);
+void palloc_init (void);
 void *palloc_get (enum palloc_flags);
 void palloc_free (void *);
 
-#endif /* palloc.h */
+#endif /* threads/palloc.h */