X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fuserprog%2Ftss.c;h=f8ed9a90ab0d7cf0cad855842cac8570a1e720f6;hb=64d029bf5cb18b21d187fbed01c45fedb451f0e8;hp=569e8d183336657aa82e04f882cd9ebd80c65b0d;hpb=58ff179ed68e25b33037ca479b0f51f8fdbec7fe;p=pintos-anon diff --git a/src/userprog/tss.c b/src/userprog/tss.c index 569e8d1..f8ed9a9 100644 --- a/src/userprog/tss.c +++ b/src/userprog/tss.c @@ -2,6 +2,7 @@ #include #include #include "userprog/gdt.h" +#include "threads/thread.h" #include "threads/palloc.h" #include "threads/vaddr.h" @@ -41,7 +42,7 @@ not in use, so we can always use that. Thus, when the scheduler switches threads, it also changes the TSS's stack pointer to point to the new thread's kernel stack. - (The call is in schedule_tail() in thread.c.) + (The call is in thread_schedule_tail() in thread.c.) See [IA32-v3a] 6.2.1 "Task-State Segment (TSS)" for a description of the TSS. See [IA32-v3a] 5.12.1 "Exception- or