Changeset 6bbe470 in mainline for kernel/arch/ia32/src/ia32.c
- Timestamp:
- 2012-10-29T22:56:18Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 21b6307
- Parents:
- 5030acad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/ia32.c
r5030acad r6bbe470 56 56 #include <genarch/kbrd/kbrd.h> 57 57 #include <genarch/srln/srln.h> 58 #include <genarch/drivers/dsrln/dsrlnout.h>59 58 #include <genarch/multiboot/multiboot.h> 60 59 #include <genarch/multiboot/multiboot2.h> … … 173 172 #endif 174 173 175 #if def CONFIG_NS16550174 #if (defined(CONFIG_NS16550) || defined(CONFIG_NS16550_OUT)) 176 175 /* 177 * Initialize the ns16550 controller. Then initialize the serial 178 * input module and connect it to ns16550. 176 * Initialize the ns16550 controller. 179 177 */ 180 178 ns16550_instance_t *ns16550_instance 181 179 = ns16550_init((ns16550_t *) NS16550_BASE, IRQ_NS16550, NULL, NULL); 182 180 if (ns16550_instance) { 181 #ifdef CONFIG_NS16550 183 182 srln_instance_t *srln_instance = srln_init(); 184 183 if (srln_instance) { … … 188 187 trap_virtual_enable_irqs(1 << IRQ_NS16550); 189 188 } 190 } 191 #endif 192 193 #ifdef CONFIG_NS16550_DSRLNOUT 194 /* 195 * Initialize dummy serial output to the ns16550. 196 */ 197 outdev_t *dsrlndev = dsrlnout_init(NS16550_BASE); 198 if (dsrlndev) { 199 stdout_wire(dsrlndev); 189 #endif 190 #ifdef CONFIG_NS16550_OUT 191 outdev_t *ns16550_out = ns16550_output(ns16550_instance); 192 if (ns16550_out) { 193 stdout_wire(ns16550_out); 194 } 195 #endif 200 196 } 201 197 #endif
Note:
See TracChangeset
for help on using the changeset viewer.