Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1702 | Rev 1754 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup ia32 |
29 | /** @addtogroup ia32 |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
- | 32 | /** |
|
32 | /** @file |
33 | * @file |
- | 34 | * @brief PIC driver. |
|
- | 35 | * |
|
- | 36 | * Programmable Interrupt Controller for UP systems based on i8259 chip. |
|
33 | */ |
37 | */ |
34 | 38 | ||
35 | #include <arch/drivers/i8259.h> |
39 | #include <arch/drivers/i8259.h> |
36 | #include <cpu.h> |
40 | #include <cpu.h> |
37 | #include <arch/types.h> |
41 | #include <arch/types.h> |
38 | #include <arch/asm.h> |
42 | #include <arch/asm.h> |
39 | #include <arch.h> |
43 | #include <arch.h> |
40 | #include <print.h> |
44 | #include <print.h> |
41 | #include <interrupt.h> |
45 | #include <interrupt.h> |
42 | 46 | ||
43 | /* |
- | |
44 | * This is the PIC driver. |
- | |
45 | * Programmable Interrupt Controller for UP systems. |
- | |
46 | */ |
- | |
47 | - | ||
48 | static void pic_spurious(int n, istate_t *istate); |
47 | static void pic_spurious(int n, istate_t *istate); |
49 | 48 | ||
50 | void i8259_init(void) |
49 | void i8259_init(void) |
51 | { |
50 | { |
52 | /* ICW1: this is ICW1, ICW4 to follow */ |
51 | /* ICW1: this is ICW1, ICW4 to follow */ |
Line 129... | Line 128... | ||
129 | #ifdef CONFIG_DEBUG |
128 | #ifdef CONFIG_DEBUG |
130 | printf("cpu%d: PIC spurious interrupt\n", CPU->id); |
129 | printf("cpu%d: PIC spurious interrupt\n", CPU->id); |
131 | #endif |
130 | #endif |
132 | } |
131 | } |
133 | 132 | ||
134 | /** @} |
133 | /** @} |
135 | */ |
134 | */ |
136 | - |