X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Ftour.texi;h=750145b184d7ae267e77adcd079d837843ae1748;hb=665b656b19d4616e1a30ce859f05ca98a64f6f05;hp=41b6ffa359b07fd122d0a82e1a1dfb1b38288c53;hpb=f82b2d2ba814f9247e1dad946b04ecf50939c8c1;p=pintos-anon diff --git a/doc/tour.texi b/doc/tour.texi index 41b6ffa..750145b 100644 --- a/doc/tour.texi +++ b/doc/tour.texi @@ -392,7 +392,7 @@ thread statistics and triggers the scheduler when a time slice expires. Called during Pintos shutdown to print thread statistics. @end deftypefun -@deftypefun void thread_create (const char *@var{name}, int @var{priority}, thread_func *@var{func}, void *@var{aux}) +@deftypefun tid_t thread_create (const char *@var{name}, int @var{priority}, thread_func *@var{func}, void *@var{aux}) Creates and starts a new thread named @var{name} with the given @var{priority}, returning the new thread's tid. The thread executes @var{func}, passing @var{aux} as the function's single argument. @@ -1050,7 +1050,7 @@ kernel threads. Thus, they do need to synchronize with other threads on shared data and other resources (@pxref{Synchronization}). @deftypefun void intr_register_int (uint8_t @var{vec}, int @var{dpl}, enum intr_level @var{level}, intr_handler_func *@var{handler}, const char *@var{name}) -Registers @var{func} to be called when internal interrupt numbered +Registers @var{handler} to be called when internal interrupt numbered @var{vec} is triggered. Names the interrupt @var{name} for debugging purposes. @@ -1071,8 +1071,8 @@ starting with project 2). Whereas an internal interrupt runs in the context of the thread that caused it, external interrupts do not have any predictable context. -They are asynchronous, so it can be invoked at any time that -interrupts have not been enabled. We say that an external interrupt +They are asynchronous, so they can be invoked at any time that +interrupts have not been disabled. We say that an external interrupt runs in an ``interrupt context.'' In an external interrupt, the @struct{intr_frame} passed to the