Rev 1901 | Rev 1919 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1901 | Rev 1903 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | ofw_tree_init(bootinfo.ofw_root); |
68 | ofw_tree_init(bootinfo.ofw_root); |
69 | } |
69 | } |
70 | 70 | ||
71 | void arch_pre_mm_init(void) |
71 | void arch_pre_mm_init(void) |
72 | { |
72 | { |
- | 73 | if (config.cpu_active == 1) |
|
73 | trap_init(); |
74 | trap_init(); |
74 | } |
75 | } |
75 | 76 | ||
76 | void arch_post_mm_init(void) |
77 | void arch_post_mm_init(void) |
77 | { |
78 | { |
- | 79 | if (config.cpu_active == 1) |
|
78 | standalone_sparc64_console_init(); |
80 | standalone_sparc64_console_init(); |
79 | } |
81 | } |
80 | 82 | ||
81 | void arch_post_cpu_init(void) |
83 | void arch_post_cpu_init(void) |
82 | { |
84 | { |
83 | } |
85 | } |
Line 88... | Line 90... | ||
88 | 90 | ||
89 | void arch_post_smp_init(void) |
91 | void arch_post_smp_init(void) |
90 | { |
92 | { |
91 | thread_t *t; |
93 | thread_t *t; |
92 | 94 | ||
- | 95 | if (config.cpu_active == 1) { |
|
93 | /* |
96 | /* |
94 | * Create thread that polls keyboard. |
97 | * Create thread that polls keyboard. |
95 | */ |
98 | */ |
96 | t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll"); |
99 | t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll"); |
97 | if (!t) |
100 | if (!t) |
98 | panic("cannot create kkbdpoll\n"); |
101 | panic("cannot create kkbdpoll\n"); |
99 | thread_ready(t); |
102 | thread_ready(t); |
- | 103 | } |
|
100 | } |
104 | } |
101 | 105 | ||
102 | /** Calibrate delay loop. |
106 | /** Calibrate delay loop. |
103 | * |
107 | * |
104 | * On sparc64, we implement delay() by waiting for the TICK register to |
108 | * On sparc64, we implement delay() by waiting for the TICK register to |