Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/mach/testarm/testarm.c

    r0e796cc r66fcba2  
    6060        gxemul_timer_irq_start,
    6161        gxemul_cpu_halt,
    62         gxemul_get_memory_extents,
     62        gxemul_get_memory_size,
    6363        gxemul_irq_exception,
    6464        gxemul_frame_init,
     
    185185}
    186186
    187 /** Get extents of available memory.
    188  *
    189  * @param start         Place to store memory start address.
    190  * @param size          Place to store memory size.
    191  */
    192 void gxemul_get_memory_extents(uintptr_t *start, uintptr_t *size)
    193 {
    194         *start = 0;
    195         *size = *((uintptr_t *) (GXEMUL_MP_ADDRESS + GXEMUL_MP_MEMSIZE_OFFSET));
    196 }
     187/** Returns the size of emulated memory.
     188 *
     189 * @return Size in bytes.
     190 */
     191uintptr_t gxemul_get_memory_size(void)
     192{
     193        return  *((uintptr_t *) (GXEMUL_MP_ADDRESS + GXEMUL_MP_MEMSIZE_OFFSET));
     194}
     195
    197196
    198197/** Returns the mask of active interrupts. */
     
    211210        unsigned int i;
    212211
    213         for (i = 0; i < GXEMUL_IRQ_COUNT; i++) {
     212        for (i = 0; i < GXEMUL_IRQC_MAX_IRQ; i++) {
    214213                if (sources & (1 << i)) {
    215214                        irq_t *irq = irq_dispatch_and_lock(i);
Note: See TracChangeset for help on using the changeset viewer.