Changeset 46db10e9 in mainline
- Timestamp:
- 2009-03-04T22:54:12Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f7734012
- Parents:
- 5e9de3a
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/ia64/loader/main.c
r5e9de3a r46db10e9 35 35 #include <balloc.h> 36 36 #include <macros.h> 37 #include <string.h> 37 38 38 39 extern bootinfo_t binfo; … … 125 126 bootinfo->taskmap.tasks[bootinfo->taskmap.count].size = 126 127 components[i].size; 128 strncpy(bootinfo->taskmap.tasks[ 129 bootinfo->taskmap.count].name, 130 components[i].name, BOOTINFO_TASK_NAME_BUFLEN); 127 131 bootinfo->taskmap.count++; 128 132 } -
kernel/arch/ia64/include/bootinfo.h
r5e9de3a r46db10e9 40 40 #define EFI_MEMMAP_IO_PORTS 2 41 41 42 /** Size of buffer for storing task name in binit_task_t. */ 43 #define BOOTINFO_TASK_NAME_BUFLEN 32 42 44 43 45 typedef struct { 44 46 void *addr; 45 47 unsigned long size; 48 char name[BOOTINFO_TASK_NAME_BUFLEN]; 46 49 } binit_task_t; 47 50 -
kernel/arch/ia64/src/ia64.c
r5e9de3a r46db10e9 63 63 #include <print.h> 64 64 #include <sysinfo/sysinfo.h> 65 #include <string.h> 65 66 66 67 /* NS16550 as a COM 1 */ … … 85 86 VRN_MASK; 86 87 init.tasks[i].size = bootinfo->taskmap.tasks[i].size; 88 strncpy(init.tasks[i].name, bootinfo->taskmap.tasks[i].name, 89 CONFIG_TASK_NAME_BUFLEN); 87 90 } 88 91 }
Note:
See TracChangeset
for help on using the changeset viewer.