Changes in kernel/arch/arm32/src/mach/testarm/testarm.c [a71c158:ecf083dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified kernel/arch/arm32/src/mach/testarm/testarm.c ¶
ra71c158 recf083dd 56 56 static irq_t gxemul_timer_irq; 57 57 58 struct arm_machine_ops machine_ops = {58 struct arm_machine_ops gxemul_machine_ops = { 59 59 gxemul_init, 60 60 gxemul_timer_irq_start, 61 61 gxemul_cpu_halt, 62 gxemul_get_memory_ size,62 gxemul_get_memory_extents, 63 63 gxemul_irq_exception, 64 64 gxemul_frame_init, 65 65 gxemul_output_init, 66 gxemul_input_init 66 gxemul_input_init, 67 gxemul_get_irq_count 67 68 }; 68 69 … … 126 127 } 127 128 129 size_t gxemul_get_irq_count(void) 130 { 131 return GXEMUL_IRQ_COUNT; 132 } 133 128 134 /** Starts gxemul Real Time Clock device, which asserts regular interrupts. 129 135 * … … 185 191 } 186 192 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 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 } 196 203 197 204 /** Returns the mask of active interrupts. */ … … 205 212 * Determines the sources of interrupt and calls their handlers. 206 213 */ 207 void gxemul_irq_exception( int exc_no, istate_t *istate)214 void gxemul_irq_exception(unsigned int exc_no, istate_t *istate) 208 215 { 209 216 uint32_t sources = gxemul_irqc_get_sources(); 210 217 unsigned int i; 211 218 212 for (i = 0; i < GXEMUL_IRQ C_MAX_IRQ; i++) {219 for (i = 0; i < GXEMUL_IRQ_COUNT; i++) { 213 220 if (sources & (1 << i)) { 214 221 irq_t *irq = irq_dispatch_and_lock(i);
Note:
See TracChangeset
for help on using the changeset viewer.