Changeset f2ea5d8 in mainline for boot/arch/sparc64/loader/main.c
- Timestamp:
- 2006-11-17T20:21:25Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f18cc64
- Parents:
- 282f2c9c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/loader/main.c
r282f2c9c rf2ea5d8 47 47 init_components(components); 48 48 49 if (!ofw_get_physmem_start(&bootinfo.physmem_start)) { 50 printf("Error: unable to get start of physical memory.\n"); 51 halt(); 52 } 53 49 54 if (!ofw_memmap(&bootinfo.memmap)) { 50 55 printf("Error: unable to get memory map, halting.\n"); … … 58 63 59 64 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); 61 67 62 68 printf("\nMemory statistics\n"); … … 66 72 unsigned int i; 67 73 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); 69 76 70 77 void * base = (void *) KERNEL_VIRTUAL_ADDRESS; … … 94 101 printf("\nChecking for secondary processors..."); 95 102 if (!ofw_cpu()) 96 printf("Error: unable to get cpuproperties\n");103 printf("Error: unable to get CPU properties\n"); 97 104 printf("done.\n"); 98 105 99 106 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)); 101 109 }
Note:
See TracChangeset
for help on using the changeset viewer.