Changeset f2ea5d8 in mainline for boot/arch/sparc64/loader/main.c


Ignore:
Timestamp:
2006-11-17T20:21:25Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f18cc64
Parents:
282f2c9c
Message:

sparc64 code to support physical memory that starts on non-zero addresses.
Still needs to be tested on systems with such setup.

File:
1 edited

Legend:

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

    r282f2c9c rf2ea5d8  
    4747        init_components(components);
    4848
     49        if (!ofw_get_physmem_start(&bootinfo.physmem_start)) {
     50                printf("Error: unable to get start of physical memory.\n");
     51                halt();
     52        }
     53
    4954        if (!ofw_memmap(&bootinfo.memmap)) {
    5055                printf("Error: unable to get memory map, halting.\n");
     
    5863       
    5964        printf("\nSystem info\n");
    60         printf(" memory: %dM\n", bootinfo.memmap.total>>20);
     65        printf(" memory: %dM starting at %P\n",
     66                bootinfo.memmap.total >> 20, bootinfo.physmem_start);
    6167
    6268        printf("\nMemory statistics\n");
     
    6672        unsigned int i;
    6773        for (i = 0; i < COMPONENTS; i++)
    68                 printf(" %P: %s image (size %d bytes)\n", components[i].start, components[i].name, components[i].size);
     74                printf(" %P: %s image (size %d bytes)\n", components[i].start,
     75                        components[i].name, components[i].size);
    6976
    7077        void * base = (void *) KERNEL_VIRTUAL_ADDRESS;
     
    94101        printf("\nChecking for secondary processors...");
    95102        if (!ofw_cpu())
    96                 printf("Error: unable to get cpu properties\n");
     103                printf("Error: unable to get CPU properties\n");
    97104        printf("done.\n");
    98105
    99106        printf("\nBooting the kernel...\n");
    100         jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, 1, &bootinfo, sizeof(bootinfo));
     107        jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS,
     108                bootinfo.physmem_start | BSP_PROCESSOR, &bootinfo, sizeof(bootinfo));
    101109}
Note: See TracChangeset for help on using the changeset viewer.