From e7bc50ca8ffcaa6ed68ebd2315f78b0f5a7d10ad Mon Sep 17 00:00:00 2001 From: klaar36 Date: Fri, 20 Mar 2015 17:30:24 +0100 Subject: Initial Pintos --- src/threads/init.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/threads/init.h (limited to 'src/threads/init.h') 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 +#include +#include +#include + +/* 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 */ -- cgit v1.2.1