Ignore:
File:
1 edited

Legend:

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

    r2902e1bb reff1f033  
    6464        size_t i;
    6565        for (i = 0; i < init.cnt; i++) {
    66                 init.tasks[i].paddr = KA2PA(bootinfo->taskmap.tasks[i].addr);
     66                init.tasks[i].addr = (uintptr_t) bootinfo->taskmap.tasks[i].addr;
    6767                init.tasks[i].size = bootinfo->taskmap.tasks[i].size;
    6868                str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN,
     
    9292{
    9393        if (config.cpu_active == 1) {
    94                 /* Map OFW information into sysinfo */
    95                 ofw_sysinfo_map();
    96                
    9794                /*
    9895                 * We have 2^11 different interrupt vectors.
     
    154151        (void) interrupts_disable();
    155152        switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry,
    156             ((uintptr_t) kernel_uarg->uspace_stack) +
    157             kernel_uarg->uspace_stack_size -
    158             (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
     153            ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE
     154            - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
    159155            (uintptr_t) kernel_uarg->uspace_uarg);
    160        
    161         /* Not reached */
    162         while (1);
     156
     157        for (;;)
     158                ;
     159        /* not reached */
    163160}
    164161
Note: See TracChangeset for help on using the changeset viewer.