Changes between Version 5 and Version 6 of kernel_malloc


Ignore:
Timestamp:
Dec 28, 2014, 10:14:26 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_malloc

    v5 v6  
    66
    77The '''kernel_heap[x][y]''' descriptors array is stored in the kernel_data segment in cluster[0][0]. Each entry [x][y] contains a heap descriptor (kernel_heap_t), defining the current heap state in cluster[x][y].
    8  * All kernel_heap[x][y) descriptors must be initialized once by the '''_heap_init()''' function.
     8 * All kernel_heap[x][y) descriptors are initialized by the '''_heap_init()''' function, called by the '''_kernel_init()''' function.
    99 * All allocated blocks have a size that is a power of 2, larger or equal to MIN_BLOCK_SIZE (typically 64 bytes), and are aligned.
    1010 * The memory allocation is done by the '''_remote_malloc()''' function, and there is no free mechanism.