Changeset 1410f35 in mainline
- Timestamp:
- 2009-03-12T18:08:04Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 91ea7c4
- Parents:
- b76e51d
- Location:
- kernel/arch/mips32/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/mips32/src/console.c
rb76e51d r1410f35 27 27 */ 28 28 29 /** @addtogroup mips32 29 /** @addtogroup mips32 30 30 * @{ 31 31 */ … … 34 34 35 35 #include <console/console.h> 36 #include <arch/console.h>37 #include <arch/drivers/serial.h>38 #include <arch/drivers/msim.h>39 36 #include <genarch/fb/fb.h> 40 37 … … 47 44 fb_redraw(); 48 45 #endif 49 msim_kbd_grab();50 46 } 51 47 … … 55 51 void arch_release_console(void) 56 52 { 57 msim_kbd_release();58 53 } 59 54 -
kernel/arch/mips32/src/mips32.c
rb76e51d r1410f35 53 53 #include <genarch/fb/fb.h> 54 54 #include <genarch/fb/visuals.h> 55 #include <genarch/drivers/dsrln/dsrlnin.h> 56 #include <genarch/drivers/dsrln/dsrlnout.h> 57 #include <genarch/srln/srln.h> 55 58 #include <macros.h> 56 59 #include <ddi/device.h> … … 134 137 { 135 138 interrupt_init(); 136 msim_console(device_assign_devno());139 137 140 #ifdef CONFIG_FB 138 141 /* GXemul framebuffer */ … … 146 149 }; 147 150 fb_init(&gxemul_prop); 151 #else 152 #ifdef CONFIG_MIPS_PRN 153 dsrlnout_init((ioport8_t *) MSIM_KBD_ADDRESS); 154 #endif /* CONFIG_MIPS_PRN */ 155 #endif /* CONFIG_FB */ 156 } 157 158 void arch_post_cpu_init(void) 159 { 160 } 161 162 void arch_pre_smp_init(void) 163 { 164 } 165 166 void arch_post_smp_init(void) 167 { 168 #ifdef CONFIG_MIPS_KBD 169 devno_t devno = device_assign_devno(); 170 171 /* 172 * Initialize the msim/GXemul keyboard port. Then initialize the serial line 173 * module and connect it to the msim/GXemul keyboard. Enable keyboard interrupts. 174 */ 175 indev_t *kbrdin = dsrlnin_init((dsrlnin_t *) MSIM_KBD_ADDRESS, devno, MSIM_KBD_IRQ); 176 if (kbrdin) { 177 srln_init(kbrdin); 178 cp0_unmask_int(MSIM_KBD_IRQ); 179 } 180 181 /* 182 * This is the necessary evil until the userspace driver is entirely 183 * self-sufficient. 184 */ 185 sysinfo_set_item_val("kbd", NULL, true); 186 sysinfo_set_item_val("kbd.devno", NULL, devno); 187 sysinfo_set_item_val("kbd.inr", NULL, MSIM_KBD_IRQ); 188 sysinfo_set_item_val("kbd.address.virtual", NULL, MSIM_KBD_ADDRESS); 148 189 #endif 149 150 #ifdef MACHINE_msim151 sysinfo_set_item_val("machine.msim", NULL, 1);152 #endif153 154 #ifdef MACHINE_simics155 sysinfo_set_item_val("machine.simics", NULL, 1);156 #endif157 158 #ifdef MACHINE_bgxemul159 sysinfo_set_item_val("machine.bgxemul", NULL, 1);160 #endif161 162 #ifdef MACHINE_lgxemul163 sysinfo_set_item_val("machine.lgxemul", NULL, 1);164 #endif165 }166 167 void arch_post_cpu_init(void)168 {169 }170 171 void arch_pre_smp_init(void)172 {173 }174 175 void arch_post_smp_init(void)176 {177 190 } 178 191 … … 223 236 { 224 237 ___halt(); 225 226 238 while (1); 227 239 }
Note:
See TracChangeset
for help on using the changeset viewer.