Changeset 61e90dd in mainline for kernel/generic/include/config.h


Ignore:
Timestamp:
2006-09-19T22:42:57Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
16529d5
Parents:
3abe07f5
Message:

Add balloc() (a.k.a boot allocator):

  • balloc() only needs to know how to allocate memory.
  • Memory allocated via balloc() is supposed to be passed to kernel and never freed by boot itself.
  • make kernel aware of boot allocations

More work on OFW device tree:

  • use balloc() to efficiently and safely allocate memory for the canonical copy of the device tree

sparc64 boot:

  • pass OFW device tree root node pointer to kernel
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/config.h

    r3abe07f5 r61e90dd  
    5656} init_t;
    5757
     58/** Boot allocations.
     59 *
     60 * Allocatations made by the boot that are meant to be used by the kernel
     61 * are all recorded in the ballocs_t type.
     62 */
     63typedef struct {
     64        uintptr_t base;
     65        size_t size;
     66} ballocs_t;
     67
    5868typedef struct {
    5969        count_t cpu_count;              /**< Number of processors detected. */
     
    7080extern config_t config;
    7181extern init_t init;
     82extern ballocs_t ballocs;
    7283
    7384#endif
Note: See TracChangeset for help on using the changeset viewer.