Changes in kernel/arch/arm32/src/mach/testarm/testarm.c [adec5b45:0e56575d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/testarm/testarm.c
radec5b45 r0e56575d 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.virtual", NULL, (sysarg_t) gxemul_kbd); 130 sysinfo_set_item_val("kbd.address.physical", NULL, 131 GXEMUL_KBD_ADDRESS); 131 132 #endif 132 133 } … … 171 172 clock(); 172 173 spinlock_lock(&irq->lock); 173 174 174 175 /* acknowledge tick */ 175 176 *((uint32_t *) (gxemul_rtc + GXEMUL_RTC_ACK_OFFSET)) … … 180 181 static void gxemul_timer_irq_init(void) 181 182 { 182 183 184 185 186 187 188 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); 189 190 } 190 191 … … 197 198 void gxemul_timer_irq_start(void) 198 199 { 199 200 200 gxemul_timer_irq_init(); 201 gxemul_timer_start(GXEMUL_TIMER_FREQ); 201 202 } 202 203 … … 226 227 uint32_t sources = gxemul_irqc_get_sources(); 227 228 unsigned int i; 228 229 229 230 for (i = 0; i < GXEMUL_IRQ_COUNT; i++) { 230 231 if (sources & (1 << i)) {
Note:
See TracChangeset
for help on using the changeset viewer.