Changeset 3e828ea in mainline for kernel/arch/sparc64/src


Ignore:
Timestamp:
2019-09-23T12:49:29Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Merge changes from master, especially Meson build

Location:
kernel/arch/sparc64/src
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/console.c

    r9259d20 r3e828ea  
    3737#include <arch/drivers/scr.h>
    3838#include <arch/drivers/kbd.h>
     39#include <arch/drivers/tty.h>
    3940#include <genarch/srln/srln.h>
    4041#include <console/chardev.h>
     
    8485        kbd_init(keyboard);
    8586#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
    8696}
    8797
  • kernel/arch/sparc64/src/drivers/kbd.c

    r9259d20 r3e828ea  
    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();
  • kernel/arch/sparc64/src/mm/sun4u/tlb.c

    r9259d20 r3e828ea  
    311311                t.a = true;
    312312                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,
    314315                    page_16k + index * MMU_PAGE_SIZE);
    315316                dtlb_pte_copy(&t, index, false);
  • kernel/arch/sparc64/src/sun4u/sparc64.c

    r9259d20 r3e828ea  
    163163{
    164164        (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 +
    167167            kernel_uarg->uspace_stack_size -
    168168            (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
    169             (uintptr_t) kernel_uarg->uspace_uarg);
     169            kernel_uarg->uspace_uarg);
    170170
    171171        /* Not reached */
  • kernel/arch/sparc64/src/sun4v/sparc64.c

    r9259d20 r3e828ea  
    161161{
    162162        (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 +
    165165            kernel_uarg->uspace_stack_size -
    166166            (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
    167             (uintptr_t) kernel_uarg->uspace_uarg);
     167            kernel_uarg->uspace_uarg);
    168168
    169169        /* Not reached */
Note: See TracChangeset for help on using the changeset viewer.