Changes in kernel/arch/arm32/src/mach/testarm/testarm.c [ecf083dd:a71c158] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mach/testarm/testarm.c
recf083dd ra71c158 56 56 static irq_t gxemul_timer_irq; 57 57 58 struct arm_machine_ops gxemul_machine_ops = {58 struct arm_machine_ops machine_ops = { 59 59 gxemul_init, 60 60 gxemul_timer_irq_start, 61 61 gxemul_cpu_halt, 62 gxemul_get_memory_ extents,62 gxemul_get_memory_size, 63 63 gxemul_irq_exception, 64 64 gxemul_frame_init, 65 65 gxemul_output_init, 66 gxemul_input_init, 67 gxemul_get_irq_count 66 gxemul_input_init 68 67 }; 69 68 … … 127 126 } 128 127 129 size_t gxemul_get_irq_count(void)130 {131 return GXEMUL_IRQ_COUNT;132 }133 134 128 /** Starts gxemul Real Time Clock device, which asserts regular interrupts. 135 129 * … … 191 185 } 192 186 193 /** Get extents of available memory. 194 * 195 * @param start Place to store memory start address. 196 * @param size Place to store memory size. 197 */ 198 void gxemul_get_memory_extents(uintptr_t *start, uintptr_t *size) 199 { 200 *start = 0; 201 *size = *((uintptr_t *) (GXEMUL_MP_ADDRESS + GXEMUL_MP_MEMSIZE_OFFSET)); 202 } 187 /** Returns the size of emulated memory. 188 * 189 * @return Size in bytes. 190 */ 191 uintptr_t gxemul_get_memory_size(void) 192 { 193 return *((uintptr_t *) (GXEMUL_MP_ADDRESS + GXEMUL_MP_MEMSIZE_OFFSET)); 194 } 195 203 196 204 197 /** Returns the mask of active interrupts. */ … … 212 205 * Determines the sources of interrupt and calls their handlers. 213 206 */ 214 void gxemul_irq_exception( unsignedint exc_no, istate_t *istate)207 void gxemul_irq_exception(int exc_no, istate_t *istate) 215 208 { 216 209 uint32_t sources = gxemul_irqc_get_sources(); 217 210 unsigned int i; 218 211 219 for (i = 0; i < GXEMUL_IRQ _COUNT; i++) {212 for (i = 0; i < GXEMUL_IRQC_MAX_IRQ; i++) { 220 213 if (sources & (1 << i)) { 221 214 irq_t *irq = irq_dispatch_and_lock(i);
Note:
See TracChangeset
for help on using the changeset viewer.