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/arch/sparc64/include/boot/boot.h

    r3abe07f5 r61e90dd  
    3636#define KERN_sparc64_BOOT_H_
    3737
    38 
    3938#define VMA                     0x400000
    4039#define LMA                     VMA
     
    4342#ifndef __LINKER__
    4443
     44#include <config.h>
    4545#include <arch/types.h>
    4646#include <typedefs.h>
     47#include <genarch/ofw/ofw_tree.h>
    4748
    4849#define TASKMAP_MAX_RECORDS     32
     
    8788} processor_t;
    8889
     90/** Bootinfo structure.
     91 *
     92 * Must be in sync with bootinfo structure used by the boot loader.
     93 */
    8994typedef struct {
    9095        taskmap_t taskmap;
     
    9398        keyboard_t keyboard;
    9499        processor_t processor;
     100        ballocs_t ballocs;
     101        ofw_tree_node_t *ofw_root;
    95102} bootinfo_t;
    96103
Note: See TracChangeset for help on using the changeset viewer.