Changeset 0139747 in mainline


Ignore:
Timestamp:
2011-01-14T19:55:40Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c32e6bc
Parents:
1433f93e
Message:

Move frame_alloc() to frame.c.

Location:
kernel/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/mm/frame.h

    r1433f93e r0139747  
    156156    (((frame_index_abs((zone), (frame)) >> (frame)->buddy_order) & 0x1) == 1)
    157157
    158 #define frame_alloc(order, flags) \
    159     frame_alloc_generic((order), (flags), NULL)
    160 
    161158extern void frame_init(void);
    162159extern void *frame_alloc_generic(uint8_t, frame_flags_t, size_t *);
     160extern void *frame_alloc(uint8_t, frame_flags_t);
    163161extern void frame_free(uintptr_t);
    164162extern void frame_reference_add(pfn_t);
  • kernel/generic/src/mm/frame.c

    r1433f93e r0139747  
    10861086}
    10871087
     1088void *frame_alloc(uint8_t order, frame_flags_t flags)
     1089{
     1090        return frame_alloc_generic(order, flags, NULL);
     1091}
     1092
    10881093/** Free a frame.
    10891094 *
Note: See TracChangeset for help on using the changeset viewer.