Rev 4345 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4345 | Rev 4346 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | #include <arch.h> |
35 | #include <arch.h> |
| 36 | #include <debug.h> |
36 | #include <debug.h> |
| 37 | #include <config.h> |
37 | #include <config.h> |
| 38 | #include <arch/trap/trap.h> |
38 | #include <arch/trap/trap.h> |
| 39 | #include <arch/console.h> |
39 | #include <arch/console.h> |
| 40 | #include <proc/thread.h> |
- | |
| 41 | #include <console/console.h> |
40 | #include <console/console.h> |
| 42 | #include <arch/boot/boot.h> |
41 | #include <arch/boot/boot.h> |
| 43 | #include <arch/arch.h> |
42 | #include <arch/arch.h> |
| 44 | #include <arch/asm.h> |
43 | #include <arch/asm.h> |
| 45 | #include <arch/mm/page.h> |
44 | #include <arch/mm/page.h> |
| Line 87... | Line 86... | ||
| 87 | /* |
86 | /* |
| 88 | * We have 2^11 different interrupt vectors. |
87 | * We have 2^11 different interrupt vectors. |
| 89 | * But we only create 128 buckets. |
88 | * But we only create 128 buckets. |
| 90 | */ |
89 | */ |
| 91 | irq_init(1 << 11, 128); |
90 | irq_init(1 << 11, 128); |
| 92 | - | ||
| 93 | standalone_sparc64_console_init(); |
- | |
| 94 | } |
91 | } |
| 95 | } |
92 | } |
| 96 | 93 | ||
| 97 | void arch_post_cpu_init(void) |
94 | void arch_post_cpu_init(void) |
| 98 | { |
95 | { |
| Line 102... | Line 99... | ||
| 102 | { |
99 | { |
| 103 | } |
100 | } |
| 104 | 101 | ||
| 105 | void arch_post_smp_init(void) |
102 | void arch_post_smp_init(void) |
| 106 | { |
103 | { |
| 107 | static thread_t *t = NULL; |
- | |
| 108 | - | ||
| 109 | if (!t) { |
- | |
| 110 | /* |
- | |
| 111 | * Create thread that polls keyboard. |
- | |
| 112 | */ |
- | |
| 113 | t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", true); |
- | |
| 114 | if (!t) |
- | |
| 115 | panic("Cannot create kkbdpoll."); |
104 | standalone_sparc64_console_init(); |
| 116 | thread_ready(t); |
- | |
| 117 | } |
- | |
| 118 | } |
105 | } |
| 119 | 106 | ||
| 120 | /** Calibrate delay loop. |
107 | /** Calibrate delay loop. |
| 121 | * |
108 | * |
| 122 | * On sparc64, we implement delay() by waiting for the TICK register to |
109 | * On sparc64, we implement delay() by waiting for the TICK register to |