X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Ftour.texi;h=81eb5bd8786941cedf22ecd66b43e6915a70d922;hb=202cb2ab659c2ff94a3cf58ae86400095e767fc3;hp=d9dab057a06f88dab97099d32ef16f98badcf2fb;hpb=9fd80c814b9b3f95c16a90a680250c3fd6e5b74e;p=pintos-anon diff --git a/doc/tour.texi b/doc/tour.texi index d9dab05..81eb5bd 100644 --- a/doc/tour.texi +++ b/doc/tour.texi @@ -261,10 +261,10 @@ other registers that must be saved are saved on the stack. A thread priority, ranging from the lowest possible priority @code{PRI_MIN} (0) to the highest possible priority @code{PRI_MAX} (59). Pintos as provided ignores thread priorities, but you will -implement priority scheduling in problem 1-3 (@pxref{Problem 1-3 +implement priority scheduling in problem 1-2 (@pxref{Problem 1-2 Priority Scheduling}). -@item list_elem elem; +@item struct list_elem elem; A ``list element'' used to put the thread into doubly linked lists, either the list of threads ready to run or a list of threads waiting on a semaphore. Take a look at @file{lib/kernel/list.h} for @@ -303,8 +303,8 @@ grows downward from the end of the page. It looks like this: | magic | | : | | : | - | name | | status | + | tid | 0 kB +---------------------------------+ @end group @end example @@ -782,11 +782,7 @@ In Pintos, @func{intr_init} in @file{threads/interrupt.c} sets up the IDT so that each entry points to a unique entry point in @file{threads/intr-stubs.S} named @func{intr@var{NN}_stub}, where @var{NN} is the interrupt number in -hexadecimal.@footnote{@file{threads/intr-stubs.S} is so repetitive -that it is actually generated by a Perl script, -@file{threads/intr-stubs.pl}. Thus, you will actually find -@file{threads/intr-stubs.S} in your @file{threads/build/threads} -directory, not in plain @file{threads}.} Because the CPU doesn't give +hexadecimal. Because the CPU doesn't give us any other way to find out the interrupt number, this entry point pushes the interrupt number on the stack. Then it jumps to @func{intr_entry}, which pushes all the registers that the processor