projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move most process destruction earlier.
[pintos-anon]
/
src
/
threads
/
palloc.h
diff --git
a/src/threads/palloc.h
b/src/threads/palloc.h
index 5b75e5563ea3795725b88793cbc58049b8f98150..38a401cb10b4971de6a59f5e5617ab480ba14270 100644
(file)
--- a/
src/threads/palloc.h
+++ b/
src/threads/palloc.h
@@
-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. */
#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 (void);
void *palloc_get (enum palloc_flags);
void palloc_free (void *);
};
void palloc_init (void);
void *palloc_get (enum palloc_flags);
void palloc_free (void *);
-#endif /* palloc.h */
+#endif /*
threads/
palloc.h */