From 44cc72b94e6463c8fd48776f544bae7faf5ab316 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Fri, 19 Dec 2014 21:41:33 +0100 Subject: [PATCH] code cleanups, remove debug messages --- arch/x86/kernel/uart.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/x86/kernel/uart.c b/arch/x86/kernel/uart.c index 12e7a3f..371e771 100644 --- a/arch/x86/kernel/uart.c +++ b/arch/x86/kernel/uart.c @@ -163,7 +163,6 @@ static void uart_handler(struct state *s) unsigned char c = read_from_uart(UART_IIR); while (!(c & UART_IIR_NO_INT)) { - kprintf("c = 0x%x\n", c); if (c & UART_IIR_RDI) { c = uart_getchar(); @@ -252,20 +251,14 @@ int uart_init(void) return -1; Lsuccess: + iobase = pci_info.base[bar]; + irq_install_handler(32+pci_info.irq, uart_handler); if (pci_info.type[0]) { mmio = 0; - iobase = pci_info.base[bar]; - irq_install_handler(32+pci_info.irq, uart_handler); - //iobase = 0x3F8; - //irq_install_handler(32+4, uart_handler); - kprintf("UART uses io address 0x%x\n", iobase); } else { mmio = 1; - iobase = 0x9010b000; //pci_info.base[0]; - irq_install_handler(32+pci_info.irq, uart_handler); page_map(iobase & PAGE_MASK, iobase & PAGE_MASK, 1, PG_GLOBAL | PG_RW | PG_PCD); - kprintf("UART uses mmio address 0x%x\n", iobase); }