X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Finit.h;h=863d1de6df079ea8e7567e49d3d3298ec7c8ade3;hb=14448b1cf4852f99278a01b1d99b8fc070fc2ff2;hp=8dfb6515e78c1075ad75f8a7365ab82537d42556;hpb=bf866bc97d077fa3757b4aceaa7a6b41e7298c73;p=pintos-anon diff --git a/src/threads/init.h b/src/threads/init.h index 8dfb651..863d1de 100644 --- a/src/threads/init.h +++ b/src/threads/init.h @@ -1,16 +1,17 @@ -#ifndef HEADER_INIT_H -#define HEADER_INIT_H 1 +#ifndef THREADS_INIT_H +#define THREADS_INIT_H +#include +#include #include +#include -/* Physical memory size, in 4 kB pages. */ -size_t ram_pages; +/* Page directory with kernel mappings only. */ +extern uint32_t *base_page_dir; -/* Kernel command line. */ -extern int argc; -extern char *argv[]; +/* -q: Power off when kernel tasks complete? */ +extern bool power_off_when_done; -struct tss *tss; +void power_off (void) NO_RETURN; - -#endif /* init.h */ +#endif /* threads/init.h */