Changeset b63f4e89 in mainline


Ignore:
Timestamp:
2019-04-13T09:45:18Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b1be5f
Parents:
86afbdb
Message:

Fix sparc64's invocation of ns16550_init

File:
1 edited

Legend:

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

    r86afbdb rb63f4e89  
    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>
    4340#include <typedefs.h>
    4441#include <align.h>
     
    8885        }
    8986
    90         size_t size = ((ofw_ebus_reg_t *) prop->value)->size;
    91 
    9287        uintptr_t pa = 0; // Prevent -Werror=maybe-uninitialized
    9388        if (!ofw_ebus_apply_ranges(node->parent,
     
    109104        }
    110105
    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);
     106        ns16550_instance_t *ns16550_instance = ns16550_init((ioport8_t *) pa, 0,
     107            inr, cir, cir_arg, NULL);
    116108        if (ns16550_instance) {
    117109                kbrd_instance_t *kbrd_instance = kbrd_init();
Note: See TracChangeset for help on using the changeset viewer.