Rev 2159 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2159 | Rev 2167 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | 35 | ||
36 | #include <arch.h> |
36 | #include <arch.h> |
37 | #include <arch/boot.h> |
37 | #include <arch/boot.h> |
38 | #include <config.h> |
38 | #include <config.h> |
39 | 39 | ||
40 | bootinfo_t bootinfo; |
40 | #include "aux_print/printf.h" |
41 | 41 | ||
42 | static void aux_write(char * str) { |
- | |
43 | while (*str) { |
42 | bootinfo_t bootinfo; |
44 | *((char *)0x10000000) = *str; |
- | |
45 | ++str; |
- | |
46 | } |
- | |
47 | } |
- | |
48 | 43 | ||
49 | void arch_pre_main(void) |
44 | void arch_pre_main(void) |
50 | { |
45 | { |
51 | int i; |
46 | int i; |
52 | 47 | ||
53 | init.cnt = bootinfo.cnt; |
48 | init.cnt = bootinfo.cnt; |
54 | 49 | ||
55 | for (i = 0; i < bootinfo.cnt; ++i) { |
50 | for (i = 0; i < bootinfo.cnt; ++i) { |
56 | init.tasks[i].addr = bootinfo.tasks[i].addr; |
51 | init.tasks[i].addr = bootinfo.tasks[i].addr; |
57 | init.tasks[i].size = bootinfo.tasks[i].size; |
52 | init.tasks[i].size = bootinfo.tasks[i].size; |
58 | aux_write("X\n"); |
53 | // aux_printf("%L, %d\n", bootinfo.tasks[i].addr, bootinfo.tasks[i].size); |
59 | } |
54 | } |
60 | 55 | ||
61 | } |
56 | } |
62 | 57 | ||
63 | void arch_pre_mm_init(void) |
58 | void arch_pre_mm_init(void) |