Changeset 96e0748d in mainline for kernel/arch/ppc32/src/ppc32.c


Ignore:
Timestamp:
2009-02-17T22:47:27Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f89979b
Parents:
e662a5f
Message:

make arch_pre_main optional, don't force any specific prototype
simplify boot process
mips32: detect number of configured CPUs in msim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/ppc32.c

    re662a5f r96e0748d  
    4646#include <ddi/irq.h>
    4747#include <arch/drivers/pic.h>
     48#include <macros.h>
    4849
    49 #define IRQ_COUNT       64
     50#define IRQ_COUNT  64
    5051
    5152bootinfo_t bootinfo;
     
    5354void arch_pre_main(void)
    5455{
    55         /* Setup usermode */
    5656        init.cnt = bootinfo.taskmap.count;
    5757       
    5858        uint32_t i;
    5959       
    60         for (i = 0; i < bootinfo.taskmap.count; i++) {
     60        for (i = 0; i < min3(bootinfo.taskmap.count, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); i++) {
    6161                init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr);
    6262                init.tasks[i].size = bootinfo.taskmap.tasks[i].size;
Note: See TracChangeset for help on using the changeset viewer.