X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fuserprog%2Ftss.c;h=cddad93b54964b7795dba95b586dfa96aa8083eb;hb=0ec49949304b13ff22287d7d9e3dcb05090c61a4;hp=4b32d8507976f6995d8c242bdc8664b9ce034fbb;hpb=c7172468133f9f739b66d22f351b1934d1b6190e;p=pintos-anon diff --git a/src/userprog/tss.c b/src/userprog/tss.c index 4b32d85..cddad93 100644 --- a/src/userprog/tss.c +++ b/src/userprog/tss.c @@ -1,9 +1,9 @@ -#include "tss.h" +#include "userprog/tss.h" +#include #include -#include "debug.h" -#include "gdt.h" -#include "mmu.h" -#include "palloc.h" +#include "userprog/gdt.h" +#include "threads/mmu.h" +#include "threads/palloc.h" /* The Task-State Segment (TSS). @@ -80,7 +80,7 @@ tss_init (void) /* Our TSS is never used in a call gate or task gate, so only a few fields of it are ever referenced, and those are the only ones we initialize. */ - tss = palloc_get (PAL_ASSERT | PAL_ZERO); + tss = palloc_get_page (PAL_ASSERT | PAL_ZERO); tss->esp0 = ptov(0x20000); tss->ss0 = SEL_KDSEG; tss->bitmap = 0xdfff;