diff options
| author | klaar36 <klas.arvidsson@liu.se> | 2015-03-20 17:30:24 +0100 |
|---|---|---|
| committer | klaar36 <klas.arvidsson@liu.se> | 2015-03-20 17:30:24 +0100 |
| commit | e7bc50ca8ffcaa6ed68ebd2315f78b0f5a7d10ad (patch) | |
| tree | 4de97af7207676b69cb6a9aba8cb443cc134855d /src/threads/init.h | |
| parent | b0418a24e709f0632d2ede5b0f327c422931939b (diff) | |
| download | pintos-rs-e7bc50ca8ffcaa6ed68ebd2315f78b0f5a7d10ad.tar.gz | |
Initial Pintos
Diffstat (limited to 'src/threads/init.h')
| -rw-r--r-- | src/threads/init.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/threads/init.h b/src/threads/init.h new file mode 100644 index 0000000..afbe37f --- /dev/null +++ b/src/threads/init.h @@ -0,0 +1,22 @@ +#ifndef THREADS_INIT_H +#define THREADS_INIT_H + +#include <debug.h> +#include <stdbool.h> +#include <stddef.h> +#include <stdint.h> + +/* Physical memory size, in 4 kB pages. */ +extern size_t ram_pages; + +/* Page directory with kernel mappings only. */ +extern uint32_t *base_page_dir; + +/* -q: Power off when kernel tasks complete? */ +extern bool power_off_when_done; +/* -tcf: Simulate failure in thread_create */ +extern int thread_create_limit; + +void power_off (void) NO_RETURN; + +#endif /* threads/init.h */ |
