Rev 4342 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4342 | Rev 4345 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | #include "asm.h" |
31 | #include "asm.h" |
32 | #include "_components.h" |
32 | #include "_components.h" |
33 | #include <ofw.h> |
33 | #include <ofw.h> |
34 | #include <align.h> |
34 | #include <align.h> |
35 | #include <macros.h> |
35 | #include <macros.h> |
- | 36 | #include <string.h> |
|
36 | 37 | ||
37 | #define HEAP_GAP 1024000 |
38 | #define HEAP_GAP 1024000 |
38 | 39 | ||
39 | bootinfo_t bootinfo; |
40 | bootinfo_t bootinfo; |
40 | 41 | ||
Line 164... | Line 165... | ||
164 | fix_overlap(components[i].start + (j << PAGE_WIDTH), &pa, components[i].name, &top); |
165 | fix_overlap(components[i].start + (j << PAGE_WIDTH), &pa, components[i].name, &top); |
165 | trans[pages + j] = pa; |
166 | trans[pages + j] = pa; |
166 | if (j == 0) { |
167 | if (j == 0) { |
167 | bootinfo.taskmap.tasks[bootinfo.taskmap.count].addr = (void *) (pages << PAGE_WIDTH); |
168 | bootinfo.taskmap.tasks[bootinfo.taskmap.count].addr = (void *) (pages << PAGE_WIDTH); |
168 | bootinfo.taskmap.tasks[bootinfo.taskmap.count].size = components[i].size; |
169 | bootinfo.taskmap.tasks[bootinfo.taskmap.count].size = components[i].size; |
- | 170 | strncpy(bootinfo.taskmap.tasks[bootinfo.taskmap.count].name, |
|
- | 171 | components[i].name, BOOTINFO_TASK_NAME_BUFLEN); |
|
- | 172 | ||
169 | bootinfo.taskmap.count++; |
173 | bootinfo.taskmap.count++; |
170 | } |
174 | } |
171 | } |
175 | } |
172 | 176 | ||
173 | pages += component_pages; |
177 | pages += component_pages; |