Ignore:
File:
1 edited

Legend:

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

    r2902e1bb reff1f033  
    6262        size_t i;
    6363        for (i = 0; i < init.cnt; i++) {
    64                 init.tasks[i].paddr = KA2PA(bootinfo->taskmap.tasks[i].addr);
     64                init.tasks[i].addr = (uintptr_t) 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                
    9996                /*
    10097                 * We have 2^11 different interrupt vectors.
     
    156153        (void) interrupts_disable();
    157154        switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry,
    158             ((uintptr_t) kernel_uarg->uspace_stack) +
    159             kernel_uarg->uspace_stack_size -
    160             (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
     155            ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE
     156            - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
    161157            (uintptr_t) kernel_uarg->uspace_uarg);
    162        
    163         /* Not reached */
    164         while (1);
     158
     159        for (;;)
     160                ;
     161        /* not reached */
    165162}
    166163
Note: See TracChangeset for help on using the changeset viewer.