Changeset 6bbe470 in mainline for kernel/arch/amd64/src/amd64.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/amd64/src/amd64.c
r5030acad r6bbe470 55 55 #include <genarch/kbrd/kbrd.h> 56 56 #include <genarch/srln/srln.h> 57 #include <genarch/drivers/dsrln/dsrlnout.h>58 57 #include <genarch/multiboot/multiboot.h> 59 58 #include <genarch/multiboot/multiboot2.h> … … 219 218 #endif 220 219 221 #if def CONFIG_NS16550220 #if (defined(CONFIG_NS16550) || defined(CONFIG_NS16550_OUT)) 222 221 /* 223 * Initialize the ns16550 controller. Then initialize the serial 224 * input module and connect it to ns16550. 222 * Initialize the ns16550 controller. 225 223 */ 226 224 ns16550_instance_t *ns16550_instance 227 225 = ns16550_init((ns16550_t *) NS16550_BASE, IRQ_NS16550, NULL, NULL); 228 226 if (ns16550_instance) { 227 #ifdef CONFIG_NS16550 229 228 srln_instance_t *srln_instance = srln_init(); 230 229 if (srln_instance) { … … 234 233 trap_virtual_enable_irqs(1 << IRQ_NS16550); 235 234 } 236 } 237 #endif 238 239 #ifdef CONFIG_NS16550_DSRLNOUT 240 /* 241 * Initialize dummy serial output to the ns16550. 242 */ 243 outdev_t *dsrlndev = dsrlnout_init(NS16550_BASE); 244 if (dsrlndev) { 245 stdout_wire(dsrlndev); 235 #endif 236 #ifdef CONFIG_NS16550_OUT 237 outdev_t *ns16550_out = ns16550_output(ns16550_instance); 238 if (ns16550_out) { 239 stdout_wire(ns16550_out); 240 } 241 #endif 246 242 } 247 243 #endif
Note:
See TracChangeset
for help on using the changeset viewer.