Changeset b63f4e89 in mainline for kernel/arch/sparc64/src/drivers/kbd.c
- Timestamp:
- 2019-04-13T09:45:18Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b1be5f
- Parents:
- 86afbdb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/kbd.c
r86afbdb rb63f4e89 38 38 #include <console/console.h> 39 39 #include <ddi/irq.h> 40 #include <mm/page.h>41 #include <arch/mm/page.h>42 #include <mm/km.h>43 40 #include <typedefs.h> 44 41 #include <align.h> … … 88 85 } 89 86 90 size_t size = ((ofw_ebus_reg_t *) prop->value)->size;91 92 87 uintptr_t pa = 0; // Prevent -Werror=maybe-uninitialized 93 88 if (!ofw_ebus_apply_ranges(node->parent, … … 109 104 } 110 105 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); 116 108 if (ns16550_instance) { 117 109 kbrd_instance_t *kbrd_instance = kbrd_init();
Note:
See TracChangeset
for help on using the changeset viewer.