Changeset f7734012 in mainline
- Timestamp:
- 2009-03-05T19:32:36Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3d360758
- Parents:
- 46db10e9
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/sparc64/loader/main.c
r46db10e9 rf7734012 180 180 bootinfo.taskmap.tasks[bootinfo.taskmap.count].size = 181 181 components[i].size; 182 strncpy(bootinfo.taskmap.tasks[ 183 bootinfo.taskmap.count].name, components[i].name, 184 BOOTINFO_TASK_NAME_BUFLEN); 182 185 bootinfo.taskmap.count++; 183 186 } -
boot/arch/sparc64/loader/main.h
r46db10e9 rf7734012 39 39 #define TASKMAP_MAX_RECORDS 32 40 40 41 /** Size of buffer for storing task name in task_t. */ 42 #define BOOTINFO_TASK_NAME_BUFLEN 32 43 41 44 #define BSP_PROCESSOR 1 42 45 #define AP_PROCESSOR 0 … … 48 51 void *addr; 49 52 uint32_t size; 53 char name[BOOTINFO_TASK_NAME_BUFLEN]; 50 54 } task_t; 51 55 -
kernel/arch/sparc64/include/boot/boot.h
r46db10e9 rf7734012 49 49 #define MEMMAP_MAX_RECORDS 32 50 50 51 #define BOOTINFO_TASK_NAME_BUFLEN 32 52 51 53 typedef struct { 52 54 void * addr; 53 55 uint32_t size; 56 char name[BOOTINFO_TASK_NAME_BUFLEN]; 54 57 } utask_t; 55 58 -
kernel/arch/sparc64/src/sparc64.c
r46db10e9 rf7734012 48 48 #include <userspace.h> 49 49 #include <ddi/irq.h> 50 #include <string.h> 50 51 51 52 bootinfo_t bootinfo; … … 62 63 init.tasks[i].addr = (uintptr_t) 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.