Rev 1220 | Rev 1274 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1220 | Rev 1222 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | #include <userspace.h> |
35 | #include <userspace.h> |
| 36 | #include <proc/uarg.h> |
36 | #include <proc/uarg.h> |
| 37 | 37 | ||
| 38 | bootinfo_t bootinfo; |
38 | bootinfo_t bootinfo; |
| 39 | 39 | ||
| - | 40 | void arch_pre_main(void) |
|
| - | 41 | { |
|
| - | 42 | /* Setup usermode */ |
|
| - | 43 | init.cnt = 1; |
|
| - | 44 | init.tasks[0].addr = PA2KA(bootinfo.init.addr); |
|
| - | 45 | init.tasks[0].size = bootinfo.init.size; |
|
| - | 46 | } |
|
| - | 47 | ||
| 40 | void arch_pre_mm_init(void) |
48 | void arch_pre_mm_init(void) |
| 41 | { |
49 | { |
| 42 | /* Initialize dispatch table */ |
50 | /* Initialize dispatch table */ |
| 43 | interrupt_init(); |
51 | interrupt_init(); |
| 44 | 52 | ||
| 45 | /* Start decrementer */ |
53 | /* Start decrementer */ |
| 46 | start_decrementer(); |
54 | start_decrementer(); |
| 47 | 55 | ||
| 48 | ppc32_console_init(); |
56 | ppc32_console_init(); |
| 49 | cuda_init(); |
57 | cuda_init(); |
| 50 | - | ||
| 51 | /* Setup usermode */ |
- | |
| 52 | init.cnt = 1; |
- | |
| 53 | init.tasks[0].addr = PA2KA(bootinfo.init.addr); |
- | |
| 54 | init.tasks[0].size = bootinfo.init.size; |
- | |
| 55 | } |
58 | } |
| 56 | 59 | ||
| 57 | void arch_post_mm_init(void) |
60 | void arch_post_mm_init(void) |
| 58 | { |
61 | { |
| 59 | } |
62 | } |