X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fuserprog%2Ftss.c;h=cddad93b54964b7795dba95b586dfa96aa8083eb;hb=5ca32ac0a54e78dc178de858a23cd14a012b0745;hp=69113e4d36e376424fe9c6a1b916f6f402220602;hpb=f6580e9ad405b519dbe85027691bf3c66074b0a4;p=pintos-anon diff --git a/src/userprog/tss.c b/src/userprog/tss.c index 69113e4..cddad93 100644 --- a/src/userprog/tss.c +++ b/src/userprog/tss.c @@ -1,7 +1,7 @@ -#include "tss.h" +#include "userprog/tss.h" +#include #include -#include "gdt.h" -#include "lib/debug.h" +#include "userprog/gdt.h" #include "threads/mmu.h" #include "threads/palloc.h" @@ -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;