Ignore:
File:
1 edited

Legend:

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

    radec5b45 rc0699467  
    4545#include <mm/page.h>
    4646#include <mm/frame.h>
    47 #include <mm/km.h>
    4847#include <arch/mm/frame.h>
    4948#include <arch/mach/integratorcp/integratorcp.h>
     
    129128void icp_init(void)
    130129{
    131         icp_hw_map.uart = km_map(ICP_UART, PAGE_SIZE,
    132             PAGE_WRITE | PAGE_NOT_CACHEABLE);
    133         icp_hw_map.kbd_ctrl = km_map(ICP_KBD, PAGE_SIZE, PAGE_NOT_CACHEABLE);
     130        icp_hw_map.uart = hw_map(ICP_UART, PAGE_SIZE);
     131        icp_hw_map.kbd_ctrl = hw_map(ICP_KBD, PAGE_SIZE);
    134132        icp_hw_map.kbd_stat = icp_hw_map.kbd_ctrl + ICP_KBD_STAT;
    135133        icp_hw_map.kbd_data = icp_hw_map.kbd_ctrl + ICP_KBD_DATA;
    136134        icp_hw_map.kbd_intstat = icp_hw_map.kbd_ctrl + ICP_KBD_INTR_STAT;
    137         icp_hw_map.rtc = km_map(ICP_RTC, PAGE_SIZE,
    138             PAGE_WRITE | PAGE_NOT_CACHEABLE);
     135        icp_hw_map.rtc = hw_map(ICP_RTC, PAGE_SIZE);
    139136        icp_hw_map.rtc1_load = icp_hw_map.rtc + ICP_RTC1_LOAD_OFFSET;
    140137        icp_hw_map.rtc1_read = icp_hw_map.rtc + ICP_RTC1_READ_OFFSET;
     
    144141        icp_hw_map.rtc1_intrstat = icp_hw_map.rtc + ICP_RTC1_INTRSTAT_OFFSET;
    145142
    146         icp_hw_map.irqc = km_map(ICP_IRQC, PAGE_SIZE,
    147             PAGE_WRITE | PAGE_NOT_CACHEABLE);
     143        icp_hw_map.irqc = hw_map(ICP_IRQC, PAGE_SIZE);
    148144        icp_hw_map.irqc_mask = icp_hw_map.irqc + ICP_IRQC_MASK_OFFSET;
    149145        icp_hw_map.irqc_unmask = icp_hw_map.irqc + ICP_IRQC_UNMASK_OFFSET;
    150         icp_hw_map.cmcr = km_map(ICP_CMCR, PAGE_SIZE,
    151             PAGE_WRITE | PAGE_NOT_CACHEABLE);
     146        icp_hw_map.cmcr = hw_map(ICP_CMCR, PAGE_SIZE);
    152147        icp_hw_map.sdramcr = icp_hw_map.cmcr + ICP_SDRAMCR_OFFSET;
    153         icp_hw_map.vga = km_map(ICP_VGA, PAGE_SIZE,
    154             PAGE_WRITE | PAGE_NOT_CACHEABLE);
     148        icp_hw_map.vga = hw_map(ICP_VGA, PAGE_SIZE);
    155149
    156150        hw_map_init_called = true;
     
    226220 * @param size          Place to store memory size.
    227221 */
    228 void icp_get_memory_extents(uintptr_t *start, size_t *size)
     222void icp_get_memory_extents(uintptr_t *start, uintptr_t *size)
    229223{
    230224        *start = 0;
Note: See TracChangeset for help on using the changeset viewer.