Ignore:
File:
1 edited

Legend:

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

    reff1f033 r2902e1bb  
    6464        size_t i;
    6565        for (i = 0; i < init.cnt; i++) {
    66                 init.tasks[i].addr = (uintptr_t) bootinfo->taskmap.tasks[i].addr;
     66                init.tasks[i].paddr = KA2PA(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               
    9497                /*
    9598                 * We have 2^11 different interrupt vectors.
     
    151154        (void) interrupts_disable();
    152155        switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry,
    153             ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE
    154             - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
     156            ((uintptr_t) kernel_uarg->uspace_stack) +
     157            kernel_uarg->uspace_stack_size -
     158            (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
    155159            (uintptr_t) kernel_uarg->uspace_uarg);
    156 
    157         for (;;)
    158                 ;
    159         /* not reached */
     160       
     161        /* Not reached */
     162        while (1);
    160163}
    161164
Note: See TracChangeset for help on using the changeset viewer.