diff options
Diffstat (limited to 'pintos-progos/threads/intr-stubs.h')
| -rw-r--r-- | pintos-progos/threads/intr-stubs.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pintos-progos/threads/intr-stubs.h b/pintos-progos/threads/intr-stubs.h new file mode 100644 index 0000000..9ceba15 --- /dev/null +++ b/pintos-progos/threads/intr-stubs.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #ifndef THREADS_INTR_STUBS_H | ||
| 2 | #define THREADS_INTR_STUBS_H | ||
| 3 | |||
| 4 | /* Interrupt stubs. | ||
| 5 | |||
| 6 | These are little snippets of code in intr-stubs.S, one for | ||
| 7 | each of the 256 possible x86 interrupts. Each one does a | ||
| 8 | little bit of stack manipulation, then jumps to intr_entry(). | ||
| 9 | See intr-stubs.S for more information. | ||
| 10 | |||
| 11 | This array points to each of the interrupt stub entry points | ||
| 12 | so that intr_init() can easily find them. */ | ||
| 13 | typedef void intr_stub_func (void); | ||
| 14 | extern intr_stub_func *intr_stubs[256]; | ||
| 15 | |||
| 16 | /* Interrupt return path. */ | ||
| 17 | void intr_exit (void); | ||
| 18 | |||
| 19 | #endif /* threads/intr-stubs.h */ | ||
