Changeset 96e0748d in mainline for boot/arch/mips32/loader/main.c
- Timestamp:
- 2009-02-17T22:47:27Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f89979b
- Parents:
- e662a5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/loader/main.c
re662a5f r96e0748d 29 29 #include "main.h" 30 30 #include <printf.h> 31 #include <align.h> 31 32 #include <macros.h> 32 33 #include "msim.h" … … 74 75 75 76 printf("\nCopying components\n"); 77 76 78 unsigned int top = 0; 77 79 bootinfo.cnt = 0; 78 for (i = 0; i < COMPONENTS; i++) {80 for (i = 0; i < min(COMPONENTS, TASKMAP_MAX_RECORDS); i++) { 79 81 printf(" %s...", components[i].name); 80 82 top = ALIGN_UP(top, PAGE_SIZE); … … 89 91 } 90 92 93 unsigned int *cpumap = (unsigned int *) CPUMAP; 94 bootinfo.cpumap = 0; 95 for (i = 0; i < CPUMAP_MAX_RECORDS; i++) { 96 if (cpumap[i] != 0) 97 bootinfo.cpumap |= (1 << i); 98 } 99 91 100 printf("\nBooting the kernel...\n"); 92 jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, &bootinfo , sizeof(bootinfo));101 jump_to_kernel((void *) KERNEL_VIRTUAL_ADDRESS, &bootinfo); 93 102 }
Note:
See TracChangeset
for help on using the changeset viewer.