Rev 3902 | Rev 3930 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3902 | Rev 3906 | ||
|---|---|---|---|
| Line 59... | Line 59... | ||
| 59 | #define CLK_CONST 1193180 |
59 | #define CLK_CONST 1193180 |
| 60 | #define MAGIC_NUMBER 1194 |
60 | #define MAGIC_NUMBER 1194 |
| 61 | 61 | ||
| 62 | static irq_t i8254_irq; |
62 | static irq_t i8254_irq; |
| 63 | 63 | ||
| 64 | static irq_ownership_t i8254_claim(void) |
64 | static irq_ownership_t i8254_claim(void *instance) |
| 65 | { |
65 | { |
| 66 | return IRQ_ACCEPT; |
66 | return IRQ_ACCEPT; |
| 67 | } |
67 | } |
| 68 | 68 | ||
| 69 | static void i8254_irq_handler(irq_t *irq, void *arg __attribute__((unused)), ...) |
69 | static void i8254_irq_handler(irq_t *irq) |
| 70 | { |
70 | { |
| 71 | /* |
71 | /* |
| 72 | * This IRQ is responsible for kernel preemption. |
72 | * This IRQ is responsible for kernel preemption. |
| 73 | * Nevertheless, we are now holding a spinlock which prevents |
73 | * Nevertheless, we are now holding a spinlock which prevents |
| 74 | * preemption. For this particular IRQ, we don't need the |
74 | * preemption. For this particular IRQ, we don't need the |