Changeset 45b26dad in mainline for boot/arch/sparc64/loader/main.c
- Timestamp:
- 2006-09-26T12:59:28Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b44939b
- Parents:
- 6ff1f1e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/loader/main.c
r6ff1f1e r45b26dad 37 37 #include <align.h> 38 38 39 #define KERNEL_VIRTUAL_ADDRESS 0x40000040 41 39 bootinfo_t bootinfo; 42 40 … … 58 56 } 59 57 60 if (!ofw_cpu(&bootinfo.cpu)) 61 printf("Error: unable to get cpu properties\n"); 62 63 printf("\nDevice info\n"); 64 printf(" cpu: %dMHz\n", bootinfo.cpu.clock_frequency/1000000); 58 printf("\nSystem info\n"); 65 59 printf(" memory: %dM\n", bootinfo.memmap.total>>20); 66 60 … … 97 91 printf("done.\n"); 98 92 93 printf("\nChecking for secondary processors..."); 94 if (!ofw_cpu()) 95 printf("Error: unable to get cpu properties\n"); 96 printf("done.\n"); 97 99 98 printf("\nBooting the kernel...\n"); 100 jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, &bootinfo, sizeof(bootinfo));99 jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, 1, &bootinfo, sizeof(bootinfo)); 101 100 }
Note:
See TracChangeset
for help on using the changeset viewer.