Changes in kernel/arch/ia32/src/ia32.c [21b6307:4a5ba372] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/ia32.c
r21b6307 r4a5ba372 45 45 #include <arch/bios/bios.h> 46 46 #include <arch/boot/boot.h> 47 #include <arch/debugger.h>48 47 #include <arch/drivers/i8254.h> 49 48 #include <arch/drivers/i8259.h> … … 51 50 #include <genarch/drivers/ega/ega.h> 52 51 #include <genarch/drivers/i8042/i8042.h> 53 #include <genarch/drivers/ns16550/ns16550.h>54 52 #include <genarch/drivers/legacy/ia32/io.h> 55 53 #include <genarch/fb/bfb.h> 56 54 #include <genarch/kbrd/kbrd.h> 57 #include <genarch/srln/srln.h>58 55 #include <genarch/multiboot/multiboot.h> 59 56 #include <genarch/multiboot/multiboot2.h> … … 120 117 #endif 121 118 122 /* Enable debugger */123 debugger_init();124 119 /* Merge all memory zones to 1 big zone */ 125 120 zone_merge_all(); … … 171 166 } 172 167 #endif 173 174 #if (defined(CONFIG_NS16550) || defined(CONFIG_NS16550_OUT))175 /*176 * Initialize the ns16550 controller.177 */178 #ifdef CONFIG_NS16550_OUT179 outdev_t *ns16550_out;180 outdev_t **ns16550_out_ptr = &ns16550_out;181 #else182 outdev_t **ns16550_out_ptr = NULL;183 #endif184 ns16550_instance_t *ns16550_instance185 = ns16550_init((ns16550_t *) NS16550_BASE, IRQ_NS16550, NULL, NULL,186 ns16550_out_ptr);187 if (ns16550_instance) {188 #ifdef CONFIG_NS16550189 srln_instance_t *srln_instance = srln_init();190 if (srln_instance) {191 indev_t *sink = stdin_wire();192 indev_t *srln = srln_wire(srln_instance, sink);193 ns16550_wire(ns16550_instance, srln);194 trap_virtual_enable_irqs(1 << IRQ_NS16550);195 }196 #endif197 #ifdef CONFIG_NS16550_OUT198 if (ns16550_out) {199 stdout_wire(ns16550_out);200 }201 #endif202 }203 #endif204 168 205 169 if (irqs_info != NULL)
Note:
See TracChangeset
for help on using the changeset viewer.