Changeset 5e9de3a in mainline
- Timestamp:
- 2009-03-04T22:45:25Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46db10e9
- Parents:
- 89b1b64
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ppc32/loader/Makefile
r89b1b64 r5e9de3a 66 66 ../../../genarch/ofw.c \ 67 67 ../../../generic/printf.c \ 68 ../../../generic/string.c \ 68 69 asm.S \ 69 70 boot.S -
boot/arch/ppc32/loader/main.c
r89b1b64 r5e9de3a 34 34 #include <align.h> 35 35 #include <macros.h> 36 #include <string.h> 36 37 37 38 #define HEAP_GAP 1024000 … … 167 168 bootinfo.taskmap.tasks[bootinfo.taskmap.count].addr = (void *) (pages << PAGE_WIDTH); 168 169 bootinfo.taskmap.tasks[bootinfo.taskmap.count].size = components[i].size; 170 strncpy(bootinfo.taskmap.tasks[bootinfo.taskmap.count].name, 171 components[i].name, BOOTINFO_TASK_NAME_BUFLEN); 172 169 173 bootinfo.taskmap.count++; 170 174 } -
boot/arch/ppc32/loader/main.h
r89b1b64 r5e9de3a 34 34 #define TASKMAP_MAX_RECORDS 32 35 35 36 /** Size of buffer for storing task name in task_t. */ 37 #define BOOTINFO_TASK_NAME_BUFLEN 32 38 39 /** Struct holding information about single loaded task. */ 36 40 typedef struct { 41 /** Address where the task was placed. */ 37 42 void *addr; 43 /** Size of the task's binary. */ 38 44 unsigned int size; 45 /** Task name. */ 46 char name[BOOTINFO_TASK_NAME_BUFLEN]; 39 47 } task_t; 40 48 -
kernel/arch/ppc32/include/boot/boot.h
r89b1b64 r5e9de3a 46 46 #ifndef __ASM__ 47 47 48 #define BOOTINFO_TASK_NAME_BUFLEN 32 49 48 50 #include <arch/types.h> 49 51 … … 51 53 uintptr_t addr; 52 54 uint32_t size; 55 char name[BOOTINFO_TASK_NAME_BUFLEN]; 53 56 } utask_t; 54 57 -
kernel/arch/ppc32/src/ppc32.c
r89b1b64 r5e9de3a 47 47 #include <arch/drivers/pic.h> 48 48 #include <macros.h> 49 #include <string.h> 49 50 50 51 #define IRQ_COUNT 64 … … 62 63 init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr); 63 64 init.tasks[i].size = bootinfo.taskmap.tasks[i].size; 65 strncpy(init.tasks[i].name, bootinfo.taskmap.tasks[i].name, 66 CONFIG_TASK_NAME_BUFLEN); 64 67 } 65 68 }
Note:
See TracChangeset
for help on using the changeset viewer.