- 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
- Location:
- boot/arch/mips32/loader
- Files:
-
- 3 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
Note:
See TracChangeset
for help on using the changeset viewer.