Changeset 3e828ea in mainline for kernel/arch/sparc64/src/drivers/kbd.c
- Timestamp:
- 2019-09-23T12:49:29Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9be2358
- Parents:
- 9259d20 (diff), 1a4ec93f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Jiri Svoboda <jiri@…> (2019-09-22 12:49:07)
- git-committer:
- Jiri Svoboda <jiri@…> (2019-09-23 12:49:29)
- File:
-
- 1 edited
-
kernel/arch/sparc64/src/drivers/kbd.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/kbd.c
r9259d20 r3e828ea 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.
