Rev 1769 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1769 | Rev 1784 | ||
|---|---|---|---|
| Line 38... | Line 38... | ||
| 38 | #include <arch/console.h> |
38 | #include <arch/console.h> |
| 39 | #include <arch/drivers/tick.h> |
39 | #include <arch/drivers/tick.h> |
| 40 | #include <proc/thread.h> |
40 | #include <proc/thread.h> |
| 41 | #include <console/console.h> |
41 | #include <console/console.h> |
| 42 | 42 | ||
| - | 43 | #include <print.h> |
|
| - | 44 | #include <genarch/ofw/ofw.h> |
|
| - | 45 | #include <arch/asm.h> |
|
| - | 46 | #include <arch/register.h> |
|
| 43 | void arch_pre_mm_init(void) |
47 | void arch_pre_mm_init(void) |
| 44 | { |
48 | { |
| 45 | interrupts_disable(); |
49 | interrupts_disable(); |
| 46 | ofw_sparc64_console_init(); |
50 | ofw_sparc64_console_init(); |
| - | 51 | ||
| 47 | trap_init(); |
52 | trap_init(); |
| 48 | tick_init(); |
53 | tick_init(); |
| 49 | } |
54 | } |
| 50 | 55 | ||
| 51 | void arch_post_mm_init(void) |
56 | void arch_post_mm_init(void) |
| Line 60... | Line 65... | ||
| 60 | void arch_post_smp_init(void) |
65 | void arch_post_smp_init(void) |
| 61 | { |
66 | { |
| 62 | thread_t *t; |
67 | thread_t *t; |
| 63 | 68 | ||
| 64 | /* |
69 | /* |
| 65 | * Create thread that reads characters from OFW's input. |
- | |
| 66 | */ |
- | |
| 67 | t = thread_create(kofwinput, NULL, TASK, 0, "kofwinput"); |
- | |
| 68 | if (!t) |
- | |
| 69 | panic("cannot create kofwinput\n"); |
- | |
| 70 | thread_ready(t); |
- | |
| 71 | - | ||
| 72 | /* |
- | |
| 73 | * Create thread that polls keyboard. |
70 | * Create thread that polls keyboard. |
| 74 | */ |
71 | */ |
| 75 | t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll"); |
72 | t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll"); |
| 76 | if (!t) |
73 | if (!t) |
| 77 | panic("cannot create kkbdpoll\n"); |
74 | panic("cannot create kkbdpoll\n"); |