Changeset b97b348 in mainline for boot/arch/sparc64/src/main.c


Ignore:
Timestamp:
2010-05-12T20:00:19Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be6cef1b
Parents:
f09d891
Message:

do not use ofw_quiesce() (it can actually make more harm than good)
fix the order of arguments passed from the bootloader to kernel on sparc64 (this fixes booting on machines with non-zero physical address start)
remove separate cache.S, use the code directly in start.S

File:
1 edited

Legend:

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

    rf09d891 rb97b348  
    205205       
    206206        void *bootinfo_pa = ofw_translate(&bootinfo);
     207        void *kernel_address_pa = ofw_translate((void *) KERNEL_ADDRESS);
    207208        void *loader_address_pa = ofw_translate((void *) LOADER_ADDRESS);
    208209       
     
    210211            bootinfo.memmap.total >> 20, bootinfo.physmem_start);
    211212        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: kernel entry point\n", KERNEL_ADDRESS, kernel_address_pa);
    213214        printf(" %p|%p: loader entry pount\n", LOADER_ADDRESS, loader_address_pa);
    214215       
     
    304305       
    305306        printf("Booting the kernel ...\n");
    306         ofw_quiesce();
    307         jump_to_kernel((void *) KERNEL_ADDRESS, &bootinfo, subarch,
    308             bootinfo.physmem_start | BSP_PROCESSOR);
    309 }
     307        jump_to_kernel(bootinfo.physmem_start | BSP_PROCESSOR, &bootinfo, subarch,
     308            (void *) KERNEL_ADDRESS);
     309}
Note: See TracChangeset for help on using the changeset viewer.