Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/drivers/kbd.c

    rb63f4e89 rc5429fe  
    3838#include <console/console.h>
    3939#include <ddi/irq.h>
     40#include <mm/page.h>
     41#include <arch/mm/page.h>
     42#include <mm/km.h>
    4043#include <typedefs.h>
    4144#include <align.h>
     
    8588        }
    8689
     90        size_t size = ((ofw_ebus_reg_t *) prop->value)->size;
     91
    8792        uintptr_t pa = 0; // Prevent -Werror=maybe-uninitialized
    8893        if (!ofw_ebus_apply_ranges(node->parent,
     
    104109        }
    105110
    106         ns16550_instance_t *ns16550_instance = ns16550_init((ioport8_t *) pa, 0,
    107             inr, cir, cir_arg, NULL);
     111        ioport8_t *ns16550 = (ioport8_t *) km_map(pa, size,
     112            KM_NATURAL_ALIGNMENT, PAGE_WRITE | PAGE_NOT_CACHEABLE);
     113
     114        ns16550_instance_t *ns16550_instance = ns16550_init(ns16550, 0, inr, cir,
     115            cir_arg, NULL);
    108116        if (ns16550_instance) {
    109117                kbrd_instance_t *kbrd_instance = kbrd_init();
Note: See TracChangeset for help on using the changeset viewer.