Ignore:
File:
1 edited

Legend:

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

    reff1f033 r2902e1bb  
    6262        size_t i;
    6363        for (i = 0; i < init.cnt; i++) {
    64                 init.tasks[i].addr = (uintptr_t) bootinfo->taskmap.tasks[i].addr;
     64                init.tasks[i].paddr = KA2PA(bootinfo->taskmap.tasks[i].addr);
    6565                init.tasks[i].size = bootinfo->taskmap.tasks[i].size;
    6666                str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN,
     
    9494{
    9595        if (config.cpu_active == 1) {
     96                /* Map OFW information into sysinfo */
     97                ofw_sysinfo_map();
     98               
    9699                /*
    97100                 * We have 2^11 different interrupt vectors.
     
    153156        (void) interrupts_disable();
    154157        switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry,
    155             ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE
    156             - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
     158            ((uintptr_t) kernel_uarg->uspace_stack) +
     159            kernel_uarg->uspace_stack_size -
     160            (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
    157161            (uintptr_t) kernel_uarg->uspace_uarg);
    158 
    159         for (;;)
    160                 ;
    161         /* not reached */
     162       
     163        /* Not reached */
     164        while (1);
    162165}
    163166
Note: See TracChangeset for help on using the changeset viewer.