Changes in kernel/arch/arm32/src/mach/testarm/testarm.c [0e56575d:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/testarm/testarm.c
r0e56575d r9d58539 121 121 } 122 122 } 123 123 124 124 /* 125 125 * This is the necessary evil until the userspace driver is entirely … … 172 172 clock(); 173 173 spinlock_lock(&irq->lock); 174 174 175 175 /* acknowledge tick */ 176 176 *((uint32_t *) (gxemul_rtc + GXEMUL_RTC_ACK_OFFSET)) … … 181 181 static void gxemul_timer_irq_init(void) 182 182 { 183 184 185 186 187 188 189 183 irq_initialize(&gxemul_timer_irq); 184 gxemul_timer_irq.devno = device_assign_devno(); 185 gxemul_timer_irq.inr = GXEMUL_TIMER_IRQ; 186 gxemul_timer_irq.claim = gxemul_timer_claim; 187 gxemul_timer_irq.handler = gxemul_timer_irq_handler; 188 189 irq_register(&gxemul_timer_irq); 190 190 } 191 191 … … 198 198 void gxemul_timer_irq_start(void) 199 199 { 200 201 200 gxemul_timer_irq_init(); 201 gxemul_timer_start(GXEMUL_TIMER_FREQ); 202 202 } 203 203 … … 227 227 uint32_t sources = gxemul_irqc_get_sources(); 228 228 unsigned int i; 229 229 230 230 for (i = 0; i < GXEMUL_IRQ_COUNT; i++) { 231 231 if (sources & (1 << i)) {
Note:
See TracChangeset
for help on using the changeset viewer.