Changeset 61e6c39 in mainline for arch/sparc64/src/mm/frame.c


Ignore:
Timestamp:
2005-12-05T17:56:23Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eef75f6
Parents:
4457455
Message:

Buddy allocator cleanup and fixes II.

  • Rewrite IS_BUDDY_LEFT_BLOCK so that it does not need floating point on some architectures (e.g. IA-64).
  • Get rid of IS_BUDDY_RIGHT_BLOCK.
  • Make sparc64 use zone_create_in_region.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/src/mm/frame.c

    r4457455 r61e6c39  
    3030#include <mm/frame.h>
    3131#include <config.h>
    32 #include <panic.h>
    3332
    3433void frame_arch_init(void)
    3534{
    36         zone_t *z;
    37        
    38         z = zone_create(0, config.memory_size, 0);
    39         if (!z) {
    40                 panic("Can't allocate zone (%dB).\n", config.memory_size);
    41         }
    42         zone_attach(z);
     35        zone_create_in_region(0, config.memory_size & ~(FRAME_SIZE - 1));
    4336}
Note: See TracChangeset for help on using the changeset viewer.