Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/amd64.c

    r21b6307 r4a5ba372  
    4343#include <arch/bios/bios.h>
    4444#include <arch/boot/boot.h>
    45 #include <arch/debugger.h>
    4645#include <arch/drivers/i8254.h>
    4746#include <arch/drivers/i8259.h>
     
    5049#include <genarch/drivers/ega/ega.h>
    5150#include <genarch/drivers/i8042/i8042.h>
    52 #include <genarch/drivers/ns16550/ns16550.h>
    5351#include <genarch/drivers/legacy/ia32/io.h>
    5452#include <genarch/fb/bfb.h>
    5553#include <genarch/kbrd/kbrd.h>
    56 #include <genarch/srln/srln.h>
    5754#include <genarch/multiboot/multiboot.h>
    5855#include <genarch/multiboot/multiboot2.h>
     
    163160#endif
    164161               
    165                 /* Enable debugger */
    166                 debugger_init();
    167162                /* Merge all memory zones to 1 big zone */
    168163                zone_merge_all();
     
    217212        }
    218213#endif
    219 
    220 #if (defined(CONFIG_NS16550) || defined(CONFIG_NS16550_OUT))
    221         /*
    222          * Initialize the ns16550 controller.
    223          */
    224 #ifdef CONFIG_NS16550_OUT
    225         outdev_t *ns16550_out;
    226         outdev_t **ns16550_out_ptr = &ns16550_out;
    227 #else
    228         outdev_t **ns16550_out_ptr = NULL;
    229 #endif
    230         ns16550_instance_t *ns16550_instance
    231             = ns16550_init((ns16550_t *) NS16550_BASE, IRQ_NS16550, NULL, NULL,
    232             ns16550_out_ptr);
    233         if (ns16550_instance) {
    234 #ifdef CONFIG_NS16550
    235                 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 #endif
    243 #ifdef CONFIG_NS16550_OUT
    244                 if (ns16550_out) {
    245                         stdout_wire(ns16550_out);
    246                 }
    247 #endif
    248         }
    249 #endif
    250214       
    251215        if (irqs_info != NULL)
Note: See TracChangeset for help on using the changeset viewer.