Rev 1928 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1928 | Rev 1944 | ||
|---|---|---|---|
| Line 43... | Line 43... | ||
| 43 | void pic_init(uintptr_t base, size_t size) |
43 | void pic_init(uintptr_t base, size_t size) |
| 44 | { |
44 | { |
| 45 | pic = (uint32_t *) hw_map(base, size); |
45 | pic = (uint32_t *) hw_map(base, size); |
| 46 | } |
46 | } |
| 47 | 47 | ||
| 48 | - | ||
| 49 | - | ||
| 50 | void pic_enable_interrupt(int intnum) |
48 | void pic_enable_interrupt(int intnum) |
| 51 | { |
49 | { |
| 52 | if (intnum < 32) { |
50 | if (intnum < 32) { |
| 53 | pic[PIC_MASK_LOW] = pic[PIC_MASK_LOW] | (1 << intnum); |
51 | pic[PIC_MASK_LOW] = pic[PIC_MASK_LOW] | (1 << intnum); |
| 54 | } else { |
52 | } else { |