Changeset 96e0748d in mainline for kernel/arch/ppc32/src/ppc32.c
- Timestamp:
- 2009-02-17T22:47:27Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f89979b
- Parents:
- e662a5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/ppc32.c
re662a5f r96e0748d 46 46 #include <ddi/irq.h> 47 47 #include <arch/drivers/pic.h> 48 #include <macros.h> 48 49 49 #define IRQ_COUNT 50 #define IRQ_COUNT 64 50 51 51 52 bootinfo_t bootinfo; … … 53 54 void arch_pre_main(void) 54 55 { 55 /* Setup usermode */56 56 init.cnt = bootinfo.taskmap.count; 57 57 58 58 uint32_t i; 59 59 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++) { 61 61 init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr); 62 62 init.tasks[i].size = bootinfo.taskmap.tasks[i].size;
Note:
See TracChangeset
for help on using the changeset viewer.