X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Ftour.texi;h=4d0ce038e6260ca4dc848029676dba6dd7031067;hb=96c122af8890db8f39dfd2ee21df761c6131e8f5;hp=39483a32011d6f64c0a43ac13277105d10436f0b;hpb=882e46c9feb305e853fd15fc774ecceee5f4bcfc;p=pintos-anon diff --git a/doc/tour.texi b/doc/tour.texi index 39483a3..4d0ce03 100644 --- a/doc/tour.texi +++ b/doc/tour.texi @@ -264,7 +264,7 @@ A thread priority, ranging from the lowest possible priority implement priority scheduling in problem 1-3 (@pxref{Problem 1-3 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 @@ -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