Changeset 411b6a6 in mainline for kernel/arch/sparc64/src
- Timestamp:
- 2009-03-07T16:08:40Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4c84368e
- Parents:
- e06da7e
- Location:
- kernel/arch/sparc64/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/console.c
re06da7e r411b6a6 41 41 #include <arch/drivers/sgcn.h> 42 42 43 #ifdef CONFIG_Z853044 #include <genarch/kbd/z8530.h>45 #endif46 #ifdef CONFIG_NS1655047 #include <genarch/kbd/ns16550.h>48 #endif49 50 43 #include <console/chardev.h> 51 44 #include <console/console.h> … … 71 64 { 72 65 #ifdef CONFIG_FB 73 stdin = NULL;74 75 66 ofw_tree_property_t *prop; 76 67 ofw_tree_node_t *screen; -
kernel/arch/sparc64/src/drivers/kbd.c
re06da7e r411b6a6 35 35 #include <arch/drivers/kbd.h> 36 36 #include <genarch/ofw/ofw_tree.h> 37 38 #ifdef CONFIG_SUN_KBD 39 #include <genarch/kbrd/kbrd.h> 40 #endif 37 41 #ifdef CONFIG_Z8530 38 #include <genarch/ kbd/z8530.h>42 #include <genarch/drivers/z8530/z8530.h> 39 43 #endif 40 44 #ifdef CONFIG_NS16550 41 #include <genarch/kbd/ns16550.h> 42 #endif 45 #include <genarch/drivers/ns16550/ns16550.h> 46 #endif 47 48 #include <console/console.h> 43 49 #include <ddi/device.h> 44 50 #include <ddi/irq.h> … … 160 166 z8530 = (z8530_t *) hw_map(aligned_addr, offset + size) + 161 167 offset; 162 (void) z8530_init(z8530, devno, inr, cir, cir_arg); 168 kbrd_init(stdin); 169 (void) z8530_init(z8530, devno, inr, cir, cir_arg, &kbrdin); 163 170 164 171 /* … … 180 187 ns16550 = (ns16550_t *) hw_map(aligned_addr, offset + size) + 181 188 offset; 182 (void) ns16550_init(ns16550, devno, inr, cir, cir_arg); 189 kbrd_init(stdin); 190 (void) ns16550_init(ns16550, devno, inr, cir, cir_arg, &kbrdin); 183 191 184 192 /* -
kernel/arch/sparc64/src/sparc64.c
re06da7e r411b6a6 90 90 */ 91 91 irq_init(1 << 11, 128); 92 93 standalone_sparc64_console_init();94 92 } 95 93 } … … 105 103 void arch_post_smp_init(void) 106 104 { 107 static thread_t *t = NULL; 105 if (config.cpu_active == 1) { 106 standalone_sparc64_console_init(); 108 107 109 if (!t) {110 /*111 * Create thread that polls keyboard.112 */113 t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll",true);108 /* Create thread that polls keyboard. 109 * XXX: this is only used by sgcn now 110 */ 111 thread_t *t = thread_create(kkbdpoll, NULL, TASK, 0, "kkbdpoll", 112 true); 114 113 if (!t) 115 114 panic("Cannot create kkbdpoll.");
Note:
See TracChangeset
for help on using the changeset viewer.