Changeset 3e828ea in mainline for kernel/arch/sparc64/src
- 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)
- Location:
- kernel/arch/sparc64/src
- Files:
-
- 1 added
- 5 edited
-
console.c (modified) (2 diffs)
-
drivers/kbd.c (modified) (3 diffs)
-
drivers/tty.c (added)
-
mm/sun4u/tlb.c (modified) (1 diff)
-
sun4u/sparc64.c (modified) (1 diff)
-
sun4v/sparc64.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/console.c
r9259d20 r3e828ea 37 37 #include <arch/drivers/scr.h> 38 38 #include <arch/drivers/kbd.h> 39 #include <arch/drivers/tty.h> 39 40 #include <genarch/srln/srln.h> 40 41 #include <console/chardev.h> … … 84 85 kbd_init(keyboard); 85 86 #endif 87 88 #ifdef CONFIG_SUN_TTY 89 ofw_tree_property_t *prop_tty = ofw_tree_getprop(aliases, "ttya"); 90 if (prop_tty && prop_tty->value) { 91 ofw_tree_node_t *tty = ofw_tree_lookup(prop_tty->value); 92 if (tty) 93 tty_init(tty); 94 } 95 #endif 86 96 } 87 97 -
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(); -
kernel/arch/sparc64/src/mm/sun4u/tlb.c
r9259d20 r3e828ea 311 311 t.a = true; 312 312 t.d = true; 313 dtlb_demap(TLB_DEMAP_PAGE, TLB_DEMAP_SECONDARY, 313 dtlb_demap(TLB_DEMAP_PAGE, 314 (as == AS_KERNEL) ? TLB_DEMAP_PRIMARY : TLB_DEMAP_SECONDARY, 314 315 page_16k + index * MMU_PAGE_SIZE); 315 316 dtlb_pte_copy(&t, index, false); -
kernel/arch/sparc64/src/sun4u/sparc64.c
r9259d20 r3e828ea 163 163 { 164 164 (void) interrupts_disable(); 165 switch_to_userspace( (uintptr_t)kernel_uarg->uspace_entry,166 ((uintptr_t) kernel_uarg->uspace_stack)+165 switch_to_userspace(kernel_uarg->uspace_entry, 166 kernel_uarg->uspace_stack + 167 167 kernel_uarg->uspace_stack_size - 168 168 (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS), 169 (uintptr_t)kernel_uarg->uspace_uarg);169 kernel_uarg->uspace_uarg); 170 170 171 171 /* Not reached */ -
kernel/arch/sparc64/src/sun4v/sparc64.c
r9259d20 r3e828ea 161 161 { 162 162 (void) interrupts_disable(); 163 switch_to_userspace( (uintptr_t)kernel_uarg->uspace_entry,164 ((uintptr_t) kernel_uarg->uspace_stack)+163 switch_to_userspace(kernel_uarg->uspace_entry, 164 kernel_uarg->uspace_stack + 165 165 kernel_uarg->uspace_stack_size - 166 166 (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS), 167 (uintptr_t)kernel_uarg->uspace_uarg);167 kernel_uarg->uspace_uarg); 168 168 169 169 /* Not reached */
Note:
See TracChangeset
for help on using the changeset viewer.
