Rev 3661 | Rev 3764 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3661 | Rev 3763 | ||
|---|---|---|---|
| Line 72... | Line 72... | ||
| 72 | 72 | ||
| 73 | void arch_pre_main(void) |
73 | void arch_pre_main(void) |
| 74 | { |
74 | { |
| 75 | /* Setup usermode init tasks. */ |
75 | /* Setup usermode init tasks. */ |
| 76 | 76 | ||
| 77 | //#ifdef I460GX |
- | |
| 78 | unsigned int i; |
77 | unsigned int i; |
| 79 | 78 | ||
| 80 | init.cnt = bootinfo->taskmap.count; |
79 | init.cnt = bootinfo->taskmap.count; |
| 81 | 80 | ||
| 82 | for (i = 0; i < init.cnt; i++) { |
81 | for (i = 0; i < init.cnt; i++) { |
| 83 | init.tasks[i].addr = ((unsigned long) bootinfo->taskmap.tasks[i].addr) | VRN_MASK; |
82 | init.tasks[i].addr = ((unsigned long) bootinfo->taskmap.tasks[i].addr) | VRN_MASK; |
| 84 | init.tasks[i].size = bootinfo->taskmap.tasks[i].size; |
83 | init.tasks[i].size = bootinfo->taskmap.tasks[i].size; |
| 85 | } |
84 | } |
| 86 | /* |
- | |
| 87 | #else |
- | |
| 88 | init.cnt = 8; |
- | |
| 89 | init.tasks[0].addr = INIT0_ADDRESS; |
- | |
| 90 | init.tasks[0].size = INIT0_SIZE; |
- | |
| 91 | init.tasks[1].addr = INIT0_ADDRESS + 0x400000; |
- | |
| 92 | init.tasks[1].size = INIT0_SIZE; |
- | |
| 93 | init.tasks[2].addr = INIT0_ADDRESS + 0x800000; |
- | |
| 94 | init.tasks[2].size = INIT0_SIZE; |
- | |
| 95 | init.tasks[3].addr = INIT0_ADDRESS + 0xc00000; |
- | |
| 96 | init.tasks[3].size = INIT0_SIZE; |
- | |
| 97 | init.tasks[4].addr = INIT0_ADDRESS + 0x1000000; |
- | |
| 98 | init.tasks[4].size = INIT0_SIZE; |
- | |
| 99 | init.tasks[5].addr = INIT0_ADDRESS + 0x1400000; |
- | |
| 100 | init.tasks[5].size = INIT0_SIZE; |
- | |
| 101 | init.tasks[6].addr = INIT0_ADDRESS + 0x1800000; |
- | |
| 102 | init.tasks[6].size = INIT0_SIZE; |
- | |
| 103 | init.tasks[7].addr = INIT0_ADDRESS + 0x1c00000; |
- | |
| 104 | init.tasks[7].size = INIT0_SIZE; |
- | |
| 105 | #endif*/ |
- | |
| 106 | } |
85 | } |
| 107 | 86 | ||
| 108 | void arch_pre_mm_init(void) |
87 | void arch_pre_mm_init(void) |
| 109 | { |
88 | { |
| 110 | /* Set Interruption Vector Address (i.e. location of interruption vector table). */ |
89 | /* Set Interruption Vector Address (i.e. location of interruption vector table). */ |