Changeset c621f4aa in mainline for kernel/arch/arm32/src/arm32.c
- Timestamp:
- 2010-07-25T10:11:13Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 377cce8
- Parents:
- 24a2517 (diff), a2da43c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
kernel/arch/arm32/src/arm32.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/arm32.c
r24a2517 rc621f4aa 45 45 #include <interrupt.h> 46 46 #include <arch/regutils.h> 47 #include <arch/machine_func.h> 47 48 #include <userspace.h> 48 49 #include <macros.h> 49 #include <str ing.h>50 #include <str.h> 50 51 #include <arch/ras.h> 51 52 #ifdef MACHINE_testarm53 #include <arch/mach/testarm/testarm.h>54 #endif55 56 #ifdef MACHINE_integratorcp57 #include <arch/mach/integratorcp/integratorcp.h>58 #endif59 60 52 61 53 /** Performs arm32-specific initialization before main_bsp() is called. */ 62 54 void arch_pre_main(void *entry __attribute__((unused)), bootinfo_t *bootinfo) 63 55 { 64 unsigned int i;56 init.cnt = min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); 65 57 66 init.cnt = bootinfo->cnt; 67 68 for (i = 0; i < min3(bootinfo->cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); ++i) { 69 init.tasks[i].addr = bootinfo->tasks[i].addr; 58 size_t i; 59 for (i = 0; i < init.cnt; i++) { 60 init.tasks[i].addr = (uintptr_t) bootinfo->tasks[i].addr; 70 61 init.tasks[i].size = bootinfo->tasks[i].size; 71 62 str_cpy(init.tasks[i].name, CONFIG_TASK_NAME_BUFLEN, 72 63 bootinfo->tasks[i].name); 73 64 } 65 66 /* Initialize machine_ops pointer. */ 67 machine_ops_init(); 74 68 } 75 69
Note:
See TracChangeset
for help on using the changeset viewer.
