projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change bitmap interface, update references.
[pintos-anon]
/
src
/
threads
/
palloc.h
diff --git
a/src/threads/palloc.h
b/src/threads/palloc.h
index 9bd076f4214b3f493fcbdfee955b758a5b20a221..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 (
uint8_t *start, uint8_t *en
d);
+void palloc_init (
voi
d);
void *palloc_get (enum palloc_flags);
void palloc_free (void *);
void *palloc_get (enum palloc_flags);
void palloc_free (void *);
-#endif /* palloc.h */
+#endif /*
threads/
palloc.h */