Changeset 89b1b64 in mainline
- Timestamp:
- 2009-03-04T22:35:16Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e9de3a
- Parents:
- 63d1ebd
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/loader/Makefile
r63d1ebd r89b1b64 73 73 _components.c \ 74 74 ../../../generic/printf.c \ 75 ../../../generic/string.c \ 75 76 asm.S \ 76 77 boot.S -
boot/arch/mips32/loader/main.c
r63d1ebd r89b1b64 31 31 #include <align.h> 32 32 #include <macros.h> 33 #include <string.h> 33 34 #include "msim.h" 34 35 #include "asm.h" … … 85 86 bootinfo.tasks[bootinfo.cnt].addr = ((void *) KERNEL_VIRTUAL_ADDRESS) + top; 86 87 bootinfo.tasks[bootinfo.cnt].size = components[i].size; 88 strncpy(bootinfo.tasks[bootinfo.cnt].name, 89 components[i].name, BOOTINFO_TASK_NAME_BUFLEN); 87 90 bootinfo.cnt++; 88 91 } -
boot/arch/mips32/loader/main.h
r63d1ebd r89b1b64 39 39 #ifndef __ASM__ 40 40 41 /** Size of buffer for storing task name in task_t. */ 42 #define BOOTINFO_TASK_NAME_BUFLEN 32 43 44 /** Struct holding information about single loaded task. */ 41 45 typedef struct { 46 /** Address where the task was placed. */ 42 47 void *addr; 48 /** Size of the task's binary. */ 43 49 unsigned int size; 50 /** Task name. */ 51 char name[BOOTINFO_TASK_NAME_BUFLEN]; 44 52 } task_t; 45 53 -
kernel/arch/mips32/include/arch.h
r63d1ebd r89b1b64 39 39 #define CPUMAP_MAX_RECORDS 32 40 40 41 #define BOOTINFO_TASK_NAME_BUFLEN 32 42 41 43 #include <typedefs.h> 42 44 … … 46 48 uintptr_t addr; 47 49 uint32_t size; 50 char name[BOOTINFO_TASK_NAME_BUFLEN]; 48 51 } utask_t; 49 52 -
kernel/arch/mips32/src/mips32.c
r63d1ebd r89b1b64 55 55 #include <macros.h> 56 56 #include <ddi/device.h> 57 #include <config.h> 58 #include <string.h> 57 59 58 60 #include <arch/asm/regname.h> … … 87 89 init.tasks[i].addr = bootinfo->tasks[i].addr; 88 90 init.tasks[i].size = bootinfo->tasks[i].size; 91 strncpy(init.tasks[i].name, bootinfo->tasks[i].name, 92 CONFIG_TASK_NAME_BUFLEN); 89 93 } 90 94
Note:
See TracChangeset
for help on using the changeset viewer.