Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/mm/page.c

    ra538808 r40c8c17  
    6565                page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags);
    6666       
     67        /* Create mapping for exception table at high offset */
    6768#ifdef HIGH_EXCEPTION_VECTORS
    68         /* Create mapping for exception table at high offset */
    69         uintptr_t ev_frame = (uintptr_t) frame_alloc(ONE_FRAME, FRAME_NONE);
    70         page_mapping_insert(AS_KERNEL, EXC_BASE_ADDRESS, ev_frame, flags);
     69        // XXX: fixme to use proper non-identity page
     70        void *virtaddr = frame_alloc(ONE_FRAME, FRAME_KA);
     71        page_mapping_insert(AS_KERNEL, EXC_BASE_ADDRESS, KA2PA(virtaddr),
     72            flags);
    7173#else
    7274#error "Only high exception vector supported now"
    7375#endif
     76        cur = ALIGN_DOWN(0x50008010, FRAME_SIZE);
     77        page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, flags);
    7478
    7579        page_table_unlock(AS_KERNEL, true);
Note: See TracChangeset for help on using the changeset viewer.