source:
branches/v4/platforms/caba-ring-ccxcachev4_memcachev4-mips32el/soft/irq/irq_handler.c
Last change on this file was 134, checked in by , 13 years ago | |
---|---|
File size: 367 bytes |
Line | |
---|---|
1 | #include "irq.h" |
2 | #include "system.h" |
3 | #include "stdio.h" |
4 | |
5 | #include "../../segmentation.h" |
6 | #include "soclib/xicu.h" |
7 | |
8 | void irq_handler (int irq) |
9 | { |
10 | const int cpu = procnum(); |
11 | |
12 | printf("Timer wrapped at cycle %d on cpu %d\n", cpu_cycles(), cpu); |
13 | /* printf("Timer wrapped on cpu %d\n", cpu); */ |
14 | |
15 | soclib_io_get(base(XICU), |
16 | XICU_REG(XICU_PTI_ACK, cpu)); |
17 | } |
Note: See TracBrowser
for help on using the repository browser.