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