X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Freference.texi;h=bcdcd63324bca3b01efc4c32ba796de1bb9c1d0b;hb=ed04361f6ec91e4f0db1550c2cc487a461b2d17b;hp=c44988cf810b6e59a5f0d715b20fdd23f3779697;hpb=53a7f5d0952a4595f252247f5ee3d017468eb57e;p=pintos-anon diff --git a/doc/reference.texi b/doc/reference.texi index c44988c..bcdcd63 100644 --- a/doc/reference.texi +++ b/doc/reference.texi @@ -100,7 +100,7 @@ arranged to begin with the assembly module @func{main}, which never returns. There's one more trick: the Pintos kernel command line -is in stored the boot loader. The @command{pintos} program actually +is stored in the boot loader. The @command{pintos} program actually modifies a copy of the boot loader on disk each time it runs the kernel, putting in whatever command line arguments the user supplies to the kernel, @@ -148,7 +148,7 @@ prerequisite for acquiring a lock, and lock acquisition in turn is important to other Pintos subsystems. Then we initialize the console and print a startup message to the console. -The next block of functions we call initialize the kernel's memory +The next block of functions we call initializes the kernel's memory system. @func{palloc_init} sets up the kernel page allocator, which doles out memory one or more pages at a time (@pxref{Page Allocator}). @func{malloc_init} sets @@ -683,7 +683,7 @@ implementation in @file{lib/kernel/list.c}. A @dfn{lock} is like a semaphore with an initial value of 1 (@pxref{Semaphores}). A lock's equivalent of ``up'' is called -``acquire'', and the ``down'' operation is called ``release''. +``release'', and the ``down'' operation is called ``acquire''. Compared to a semaphore, a lock has one added restriction: only the thread that acquires a lock, called the lock's ``owner'', is allowed to