Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/src/main.c

    r4872160 r339249f  
    101101                 * an unknown value of the "compatible" property is encountered.
    102102                 */
    103                 printf("Warning: Unknown architecture, assuming sun4u.\n");
     103                if (str_cmp(compatible, "sun4u") != 0)
     104                        printf("Warning: Unknown architecture, assuming sun4u.\n");
    104105                arch = ARCH_SUN4U;
    105106        } else
     
    205206       
    206207        void *bootinfo_pa = ofw_translate(&bootinfo);
     208        void *kernel_address_pa = ofw_translate((void *) KERNEL_ADDRESS);
    207209        void *loader_address_pa = ofw_translate((void *) LOADER_ADDRESS);
    208210       
     
    210212            bootinfo.memmap.total >> 20, bootinfo.physmem_start);
    211213        printf(" %p|%p: boot info structure\n", &bootinfo, bootinfo_pa);
    212         printf(" %p|%p: kernel entry point\n", KERNEL_ADDRESS, KERNEL_ADDRESS);
    213         printf(" %p|%p: loader entry pount\n", LOADER_ADDRESS, loader_address_pa);
     214        printf(" %p|%p: kernel entry point\n", KERNEL_ADDRESS, kernel_address_pa);
     215        printf(" %p|%p: loader entry point\n", LOADER_ADDRESS, loader_address_pa);
    214216       
    215217        size_t i;
     
    304306       
    305307        printf("Booting the kernel ...\n");
    306         ofw_quiesce();
    307         jump_to_kernel((void *) KERNEL_ADDRESS, &bootinfo, subarch,
    308             bootinfo.physmem_start | BSP_PROCESSOR);
    309 }
     308        jump_to_kernel(bootinfo.physmem_start | BSP_PROCESSOR, &bootinfo, subarch,
     309            (void *) KERNEL_ADDRESS);
     310}
Note: See TracChangeset for help on using the changeset viewer.