Changeset b0c2075 in mainline for kernel/generic/src/cpu


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/cpu/cpu.c

    r86733f3 rb0c2075  
    7474                for (i = 0; i < config.cpu_count; i++) {
    7575                        cpus[i].stack = (uint8_t *) PA2KA(frame_alloc(STACK_FRAMES,
    76                             FRAME_LOWMEM | FRAME_ATOMIC, 0));
     76                            FRAME_LOWMEM | FRAME_ATOMIC, STACK_SIZE - 1));
    7777                        cpus[i].id = i;
    7878                       
Note: See TracChangeset for help on using the changeset viewer.