X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fthreads%2Finit.h;h=555804a4efddff75b72c5d2a89aaec880440317e;hb=e5b8483ba96df26aa42ccee127cb9a1d50e67f47;hp=2c73fd96179f1c640c2f09c166c537b1ecfd7673;hpb=44d0fa6a2b24a84e5eb0d54959ed91c1d4f15343;p=pintos-anon diff --git a/src/threads/init.h b/src/threads/init.h index 2c73fd9..555804a 100644 --- a/src/threads/init.h +++ b/src/threads/init.h @@ -1,11 +1,16 @@ -#ifndef HEADER_INIT_H -#define HEADER_INIT_H 1 +#ifndef THREADS_INIT_H +#define THREADS_INIT_H +#include #include +#include -struct tss *tss; - -extern size_t kernel_pages; +/* Physical memory size, in 4 kB pages. */ extern size_t ram_pages; -#endif /* init.h */ +/* Page directory with kernel mappings only. */ +extern uint32_t *base_page_dir; + +void power_off (void) NO_RETURN; + +#endif /* threads/init.h */