From 02ae2d67be2382d3975e4558445a10dacd566a41 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 27 Sep 2004 16:54:38 +0000 Subject: [PATCH] Update docs. --- doc/Makefile | 3 ++- doc/filesys.texi | 2 +- doc/mlfqs.texi | 2 +- doc/projects.texi | 26 ++++++++++++++++++++++++++ doc/threads.texi | 9 +++------ doc/userprog.texi | 2 +- doc/vm.texi | 6 +++--- 7 files changed, 37 insertions(+), 13 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index cfb7cbf..b2e8a43 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,5 +1,6 @@ TEXIS = projects.texi intro.texi threads.texi mlfqs.texi userprog.texi \ -filesys.texi vm.texi standards.texi doc.texi devel.texi debug.texi +vm.texi filesys.texi references.texi standards.texi doc.texi devel.texi \ +debug.texi all: projects.html projects.info diff --git a/doc/filesys.texi b/doc/filesys.texi index c854ff3..c20ac8a 100644 --- a/doc/filesys.texi +++ b/doc/filesys.texi @@ -1,4 +1,4 @@ -@node Project 4--File Systems, Multilevel Feedback Scheduling, Project 3--Virtual Memory, Top +@node Project 4--File Systems, References, Project 3--Virtual Memory, Top @chapter Project 4: File Systems In the previous two assignments, you made extensive use of a diff --git a/doc/mlfqs.texi b/doc/mlfqs.texi index cb64dc4..253f91b 100644 --- a/doc/mlfqs.texi +++ b/doc/mlfqs.texi @@ -1,4 +1,4 @@ -@node Multilevel Feedback Scheduling, Coding Standards, Project 4--File Systems, Top +@node Multilevel Feedback Scheduling, Coding Standards, References, Top @appendix Multilevel Feedback Scheduling This section gives a brief overview of the behavior of the Solaris 2.6 diff --git a/doc/projects.texi b/doc/projects.texi index f803ac0..3437dcc 100644 --- a/doc/projects.texi +++ b/doc/projects.texi @@ -4,6 +4,30 @@ @settitle Pintos Projects @c %**end of header +@c @bibref{} macro +@iftex +@macro bibref{cite} +[\cite\] +@end macro +@end iftex +@ifinfo +@ifnotplaintext +@macro bibref{cite} +@ref{\cite\} +@end macro +@end ifnotplaintext +@ifplaintext +@macro bibref{cite} +[\cite\] +@end macro +@end ifplaintext +@end ifinfo +@ifhtml +@macro bibref{cite} +[@ref{\cite\}] +@end macro +@end ifhtml + @titlepage @title Pintos Projects @end titlepage @@ -21,6 +45,7 @@ * Project 2--User Programs:: * Project 3--Virtual Memory:: * Project 4--File Systems:: +* References:: * Multilevel Feedback Scheduling:: * Coding Standards:: * Project Documentation:: @@ -32,6 +57,7 @@ @include userprog.texi @include vm.texi @include filesys.texi +@include references.texi @include mlfqs.texi @include standards.texi @include doc.texi diff --git a/doc/threads.texi b/doc/threads.texi index d353f22..62e8a3e 100644 --- a/doc/threads.texi +++ b/doc/threads.texi @@ -79,7 +79,7 @@ why the @code{switch_threads()} that gets called is different from the @strong{Warning}: In Pintos, each thread is assigned a small, fixed-size execution stack just under @w{4 kB} in size. The kernel does try to detect stack overflow, but it cannot always succeed. You -ma cause bizarre problems, such as mysterious kernel panics, if you +may cause bizarre problems, such as mysterious kernel panics, if you declare large data structures as non-static local variables, e.g. @samp{int buf[1000];}. Alternatives to stack allocation include the page allocator in @file{threads/palloc.c} and the block allocator @@ -282,10 +282,7 @@ program twice and have it do exactly the same thing. On second and later runs, you can make new observations without having to discard or verify your old observations. This property is called ``reproducibility.'' The simulator we use, Bochs, can be set up for -reproducibility. If you use the Bochs configuration files we provide, -which specify @samp{ips: @var{n}} where @var{n} is a number of -simulated instructions per second, your simulations can be -reproducible. +reproducibility, and that's the way that @command{pintos} invokes it. Of course, a simulation can only be reproducible from one run to the next if its input is the same each time. For simulating an entire @@ -586,7 +583,7 @@ the function isn't actually used by other @file{.c} files, make it @menu * Problem 1-1 Alarm Clock FAQ:: -* Problem 1-2 Join FAQ:: +* Problem 1-2 Join FAQ:: * Problem 1-3 Priority Scheduling FAQ:: * Problem 1-4 Advanced Scheduler FAQ:: @end menu diff --git a/doc/userprog.texi b/doc/userprog.texi index 3601233..5c0ee72 100644 --- a/doc/userprog.texi +++ b/doc/userprog.texi @@ -654,7 +654,7 @@ calling convention. Some of the basics should be familiar from CS have seen even more of it. I've omitted some of the complexity, since this isn't a class in how function calls work, so don't expect this to be exactly correct in full, gory detail. If you do want all the -details, you can refer to @cite{[SysV-i386]}. +details, you can refer to @bibref{SysV-i386}. Whenever a function call happens, you need to put the arguments on the call stack for that function, before the code for that function diff --git a/doc/vm.texi b/doc/vm.texi index b7f766e..8ff5922 100644 --- a/doc/vm.texi +++ b/doc/vm.texi @@ -112,20 +112,20 @@ can effectively ignore this CPU feature.} @enumerate 1 @item -The top 10 bits of the virtual address (bits 22:31) are used to index +The top 10 bits of the virtual address (bits 22:32) are used to index into the page directory. If the PDE is marked ``present,'' the physical address of a page table is read from the PDE thus obtained. If the PDE is marked ``not present'' then a page fault occurs. @item -The next 10 bits of the virtual address (bits 12:21) are used to index +The next 10 bits of the virtual address (bits 12:22) are used to index into the page table. If the PTE is marked ``present,'' the physical address of a data page is read from the PTE thus obtained. If the PTE is marked ``not present'' then a page fault occurs. @item -The bottom 12 bits of the virtual address (bits 0:11) are added to the +The bottom 12 bits of the virtual address (bits 0:12) are added to the data page's physical base address, producing the final physical address. @end enumerate -- 2.30.2