Rev 3743 | Rev 3770 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3743 | Rev 3748 | ||
|---|---|---|---|
| Line 54... | Line 54... | ||
| 54 | bootinfo_t bootinfo; |
54 | bootinfo_t bootinfo; |
| 55 | 55 | ||
| 56 | /** Perform sparc64 specific initialization before main_bsp() is called. */ |
56 | /** Perform sparc64 specific initialization before main_bsp() is called. */ |
| 57 | void arch_pre_main(void) |
57 | void arch_pre_main(void) |
| 58 | { |
58 | { |
| - | 59 | /* |
|
| - | 60 | * Initialize Niagara input/output driver. |
|
| - | 61 | * This will be moved to arch_post_mm_init when the memory management |
|
| - | 62 | * is finished for sun4v. |
|
| - | 63 | */ |
|
| 59 | niagara_init(); |
64 | niagara_init(); |
| 60 | 65 | ||
| 61 | /* Copy init task info. */ |
66 | /* Copy init task info. */ |
| 62 | init.cnt = bootinfo.taskmap.count; |
67 | init.cnt = bootinfo.taskmap.count; |
| 63 | 68 | ||
| 64 | uint32_t i; |
69 | uint32_t i; |
| 65 | 70 | ||
| 66 | for (i = 0; i < bootinfo.taskmap.count; i++) { |
71 | for (i = 0; i < bootinfo.taskmap.count; i++) { |
| 67 | init.tasks[i].addr = (uintptr_t) bootinfo.taskmap.tasks[i].addr; |
72 | init.tasks[i].addr = (uintptr_t) bootinfo.taskmap.tasks[i].addr; |
| 68 | init.tasks[i].size = bootinfo.taskmap.tasks[i].size; |
73 | init.tasks[i].size = bootinfo.taskmap.tasks[i].size; |