Changeset 150385b9 in mainline
- Timestamp:
- 2009-03-03T23:00:58Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d1ebd
- Parents:
- ff685c9
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/loader/Makefile
rff685c9 r150385b9 68 68 _components.c \ 69 69 ../../../generic/printf.c \ 70 ../../../generic/string.c \ 70 71 ../../../genarch/division.c 71 72 -
boot/arch/arm32/loader/main.c
rff685c9 r150385b9 42 42 #include <align.h> 43 43 #include <macros.h> 44 #include <string.h> 44 45 45 46 #include "mm.h" … … 104 105 bootinfo.tasks[bootinfo.cnt].addr = ((void *) KERNEL_VIRTUAL_ADDRESS) + top; 105 106 bootinfo.tasks[bootinfo.cnt].size = components[i].size; 107 strncpy(bootinfo.tasks[bootinfo.cnt].name, 108 components[i].name, BOOTINFO_TASK_NAME_BUFLEN); 106 109 bootinfo.cnt++; 107 110 } -
boot/arch/arm32/loader/main.h
rff685c9 r150385b9 43 43 #define TASKMAP_MAX_RECORDS 32 44 44 45 /** Size of buffer for storing task name in task_t. */ 46 #define BOOTINFO_TASK_NAME_BUFLEN 32 47 45 48 46 49 /** Struct holding information about single loaded task. */ … … 50 53 /** Size of the task's binary. */ 51 54 unsigned int size; 55 /** Task name. */ 56 char name[BOOTINFO_TASK_NAME_BUFLEN]; 52 57 } task_t; 53 58 -
kernel/arch/arm32/include/arch.h
rff685c9 r150385b9 40 40 #define CPUMAP_MAX_RECORDS 32 41 41 42 #define BOOTINFO_TASK_NAME_BUFLEN 32 43 42 44 #include <typedefs.h> 43 45 … … 45 47 uintptr_t addr; 46 48 uint32_t size; 49 char name[BOOTINFO_TASK_NAME_BUFLEN]; 47 50 } utask_t; 48 51 -
kernel/arch/arm32/src/arm32.c
rff685c9 r150385b9 49 49 #include <userspace.h> 50 50 #include <macros.h> 51 #include <string.h> 51 52 52 53 /** Performs arm32-specific initialization before main_bsp() is called. */ … … 60 61 init.tasks[i].addr = bootinfo->tasks[i].addr; 61 62 init.tasks[i].size = bootinfo->tasks[i].size; 63 strncpy(init.tasks[i].name, bootinfo->tasks[i].name, 64 CONFIG_TASK_NAME_BUFLEN); 62 65 } 63 66 }
Note:
See TracChangeset
for help on using the changeset viewer.