116b637e3cd0b7560f4a5d3dae57b475f80ba0db
[pintos-anon] / src / threads / intr-stubs.h
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.  They just push the
8    interrupt vector number on the stack (and, for interrupts that
9    don't have an error code, a fake error code), then jump to
10    intr_entry().
11
12    This array points to each of the interrupt stub entry points
13    so that intr_init() can easily find them. */
14 typedef void intr_stub_func (void);
15 extern intr_stub_func *intr_stubs[256];
16
17 /* Interrupt return path. */
18 void intr_exit (void);
19
20 #endif /* threads/intr-stubs.h */