Last change
on this file since 153 was
134,
checked in by kane, 14 years ago
|
add multi write buffer in cc_xcache_v4
|
File size:
501 bytes
|
Line | |
---|
1 | #include "irq.h" |
---|
2 | #include "system.h" |
---|
3 | #include "stdio.h" |
---|
4 | #include "../define.h" |
---|
5 | #include "../../segmentation.h" |
---|
6 | #include "soclib/xicu.h" |
---|
7 | |
---|
8 | void irq_init () |
---|
9 | { |
---|
10 | int cpu=procnum(); |
---|
11 | |
---|
12 | printf("irq_init : %d\n",cpu); |
---|
13 | |
---|
14 | set_irq_handler(irq_handler); |
---|
15 | |
---|
16 | soclib_io_set(base(XICU), |
---|
17 | XICU_REG(XICU_PTI_PER, cpu), |
---|
18 | TIMER_INTERRUPT_PERIOD); |
---|
19 | |
---|
20 | soclib_io_set(base(XICU), |
---|
21 | XICU_REG(XICU_MSK_PTI, cpu), |
---|
22 | 1); |
---|
23 | |
---|
24 | enable_hw_irq(0); |
---|
25 | irq_enable(); |
---|
26 | } |
---|
27 | |
---|
Note: See
TracBrowser
for help on using the repository browser.