X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fintr-stubs.h;h=9ceba157e27e57d74a9096a2f35f0ff3008ffb10;hb=251b51f76f0594460e1cfbf2c05576fb445b861b;hp=3f2db7e1870d5d0401ef63dd821b73b878a34804;hpb=beddf03109baecfdda77c6e4478ac975e49faf73;p=pintos-anon diff --git a/src/threads/intr-stubs.h b/src/threads/intr-stubs.h index 3f2db7e..9ceba15 100644 --- a/src/threads/intr-stubs.h +++ b/src/threads/intr-stubs.h @@ -1,13 +1,12 @@ -#ifndef HEADER_INTR_STUBS_H -#define HEADER_INTR_STUBS_H +#ifndef THREADS_INTR_STUBS_H +#define THREADS_INTR_STUBS_H /* Interrupt stubs. These are little snippets of code in intr-stubs.S, one for - each of the 256 possible x86 interrupts. They just push the - interrupt vector number on the stack (and, for interrupts that - don't have an error code, a fake error code), then jump to - intr_entry(). + each of the 256 possible x86 interrupts. Each one does a + little bit of stack manipulation, then jumps to intr_entry(). + See intr-stubs.S for more information. This array points to each of the interrupt stub entry points so that intr_init() can easily find them. */ @@ -17,4 +16,4 @@ extern intr_stub_func *intr_stubs[256]; /* Interrupt return path. */ void intr_exit (void); -#endif /* intr-stubs.h */ +#endif /* threads/intr-stubs.h */