56,13 → 56,6 |
/** Perform sparc64 specific initialization before main_bsp() is called. */ |
void arch_pre_main(void) |
{ |
/* |
* Initialize Niagara input/output driver. |
* This will be moved to arch_post_mm_init when the memory management |
* is finished for sun4v. |
*/ |
niagara_init(); |
|
/* Copy init task info. */ |
init.cnt = bootinfo.taskmap.count; |
|
71,13 → 64,10 |
for (i = 0; i < bootinfo.taskmap.count; i++) { |
init.tasks[i].addr = (uintptr_t) bootinfo.taskmap.tasks[i].addr; |
init.tasks[i].size = bootinfo.taskmap.tasks[i].size; |
printf("Task %d starts at %x and its size id %d.\n", i, init.tasks[i].addr, init.tasks[i].size); |
} |
|
/* Copy boot allocations info. */ |
ballocs.base = bootinfo.ballocs.base; |
ballocs.size = bootinfo.ballocs.size; |
|
ofw_tree_init(bootinfo.ofw_root); |
// md_init(); |
} |
|
/** Perform sparc64 specific initialization before mm is initialized. */ |
96,10 → 86,13 |
* But we only create 128 buckets. |
*/ |
irq_init(1 << 11, 128); |
} |
|
standalone_sparc64_console_init(); |
/* |
* Initialize Niagara input/output driver. |
*/ |
niagara_init(); |
} |
} |
|
void arch_post_cpu_init(void) |
{ |