Changeset b0c2075 in mainline for kernel/arch/arm32/src


Ignore:
Timestamp:
2013-09-10T17:48:57Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
85147f3
Parents:
86733f3
Message:

new physical memory allocator supporting physical address constrains
the buddy allocator framework is retired and replaced by a two-level bitmap
the allocator can allocate an arbitrary number of frames, not only a power-of-two count

Caution: Change of semantics
The physical memory allocator no longer allocates naturally aligned blocks. If you require an aligned block, specify it as the constraint.

Location:
kernel/arch/arm32/src
Files:
2 edited

Legend:

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

    r86733f3 rb0c2075  
    6969#ifdef HIGH_EXCEPTION_VECTORS
    7070        /* Create mapping for exception table at high offset */
    71         uintptr_t ev_frame = frame_alloc(ONE_FRAME, FRAME_NONE, 0);
     71        uintptr_t ev_frame = frame_alloc(1, FRAME_NONE, 0);
    7272        page_mapping_insert(AS_KERNEL, EXC_BASE_ADDRESS, ev_frame, flags);
    7373#else
  • kernel/arch/arm32/src/ras.c

    r86733f3 rb0c2075  
    5151void ras_init(void)
    5252{
    53         uintptr_t frame = frame_alloc(ONE_FRAME,
    54             FRAME_ATOMIC | FRAME_HIGHMEM, 0);
     53        uintptr_t frame =
     54            frame_alloc(1, FRAME_ATOMIC | FRAME_HIGHMEM, 0);
    5555        if (!frame)
    56                 frame = frame_alloc(ONE_FRAME, FRAME_LOWMEM, 0);
     56                frame = frame_alloc(1, FRAME_LOWMEM, 0);
    5757       
    5858        ras_page = (uintptr_t *) km_map(frame,
Note: See TracChangeset for help on using the changeset viewer.