X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Freference.texi;h=d4426106687d068480ec37874fb4255293478197;hb=f1f2dc8de9e336d83383692d4478bb14a3dafc11;hp=924fd7815bdcc8fa4fe9bcf25e2fa36f5e2fa511;hpb=28034001ef25d7ac4f58c7535a6fce767c9df8f5;p=pintos-anon diff --git a/doc/reference.texi b/doc/reference.texi index 924fd78..d442610 100644 --- a/doc/reference.texi +++ b/doc/reference.texi @@ -133,7 +133,7 @@ initializer, that variable goes into the BSS. Because it's all zeros, the BSS isn't stored in the image that the loader brought into memory. We just use @func{memset} to zero it out. The other task of @func{ram_init} is to read out the machine's memory size from where -the loader stored it and put it into the @code{ram_pages} variable for +the loader stored it and put it into the @code{init_ram_pages} variable for later use. Next, @func{main} calls @func{read_command_line} to break the kernel command @@ -501,7 +501,7 @@ CPU's current stack pointer in the current @struct{thread}'s @code{stack} member, restores the new thread's @code{stack} into the CPU's stack pointer, restores registers from the stack, and returns. -The rest of the scheduler is implemented in @func{schedule_tail}. It +The rest of the scheduler is implemented in @func{thread_schedule_tail}. It marks the new thread as running. If the thread we just switched from is in the dying state, then it also frees the page that contained the dying thread's @struct{thread} and stack. These couldn't be freed @@ -530,8 +530,8 @@ pointer,@footnote{This is because @func{switch_threads} takes arguments on the stack and the 80@var{x}86 SVR4 calling convention requires the caller, not the called function, to remove them when the call is complete. See @bibref{SysV-i386} chapter 3 for details.} -calls @func{schedule_tail} (this special case is why -@func{schedule_tail} is separate from @func{schedule}), and returns. +calls @func{thread_schedule_tail} (this special case is why +@func{thread_schedule_tail} is separate from @func{schedule}), and returns. We fill in its stack frame so that it returns into @func{kernel_thread}, a function in @file{threads/thread.c}.