Changes in kernel/arch/amd64/src/amd64.c [21b6307:4a5ba372] in mainline
- File:
-
- 1 edited
-
kernel/arch/amd64/src/amd64.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
r21b6307 r4a5ba372 43 43 #include <arch/bios/bios.h> 44 44 #include <arch/boot/boot.h> 45 #include <arch/debugger.h>46 45 #include <arch/drivers/i8254.h> 47 46 #include <arch/drivers/i8259.h> … … 50 49 #include <genarch/drivers/ega/ega.h> 51 50 #include <genarch/drivers/i8042/i8042.h> 52 #include <genarch/drivers/ns16550/ns16550.h>53 51 #include <genarch/drivers/legacy/ia32/io.h> 54 52 #include <genarch/fb/bfb.h> 55 53 #include <genarch/kbrd/kbrd.h> 56 #include <genarch/srln/srln.h>57 54 #include <genarch/multiboot/multiboot.h> 58 55 #include <genarch/multiboot/multiboot2.h> … … 163 160 #endif 164 161 165 /* Enable debugger */166 debugger_init();167 162 /* Merge all memory zones to 1 big zone */ 168 163 zone_merge_all(); … … 217 212 } 218 213 #endif 219 220 #if (defined(CONFIG_NS16550) || defined(CONFIG_NS16550_OUT))221 /*222 * Initialize the ns16550 controller.223 */224 #ifdef CONFIG_NS16550_OUT225 outdev_t *ns16550_out;226 outdev_t **ns16550_out_ptr = &ns16550_out;227 #else228 outdev_t **ns16550_out_ptr = NULL;229 #endif230 ns16550_instance_t *ns16550_instance231 = ns16550_init((ns16550_t *) NS16550_BASE, IRQ_NS16550, NULL, NULL,232 ns16550_out_ptr);233 if (ns16550_instance) {234 #ifdef CONFIG_NS16550235 srln_instance_t *srln_instance = srln_init();236 if (srln_instance) {237 indev_t *sink = stdin_wire();238 indev_t *srln = srln_wire(srln_instance, sink);239 ns16550_wire(ns16550_instance, srln);240 trap_virtual_enable_irqs(1 << IRQ_NS16550);241 }242 #endif243 #ifdef CONFIG_NS16550_OUT244 if (ns16550_out) {245 stdout_wire(ns16550_out);246 }247 #endif248 }249 #endif250 214 251 215 if (irqs_info != NULL)
Note:
See TracChangeset
for help on using the changeset viewer.
