Changeset 61e90dd in mainline for kernel/arch/sparc64/src/sparc64.c


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/src/sparc64.c

    r3abe07f5 r61e90dd  
    5252void arch_pre_main(void)
    5353{
    54         /* Setup usermode */
     54        /* Copy init task info. */
    5555        init.cnt = bootinfo.taskmap.count;
    5656       
     
    6161                init.tasks[i].size = bootinfo.taskmap.tasks[i].size;
    6262        }
     63       
     64        /* Copy boot allocations info. */
     65        ballocs.base = bootinfo.ballocs.base;
     66        ballocs.size = bootinfo.ballocs.size;
    6367}
    6468
Note: See TracChangeset for help on using the changeset viewer.