Changeset 0f94c3d in mainline for kernel/arch/ia32/src/boot/cboot.c
- Timestamp:
- 2009-03-01T20:51:26Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2e079b70
- Parents:
- 0d5a50c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/boot/cboot.c
r0d5a50c r0f94c3d 39 39 #include <config.h> 40 40 #include <memstr.h> 41 #include <func.h> 41 42 42 43 /* This is a symbol so the type is only dummy. Obtain the value using &. */ … … 69 70 init.tasks[i].addr = mods[i].start + 0x80000000; 70 71 init.tasks[i].size = mods[i].end - mods[i].start; 72 73 /* Copy command line, if available. */ 74 if (mods[i].string) { 75 strncpy(init.tasks[i].name, mods[i].string, 76 CONFIG_TASK_NAME_BUFLEN - 1); 77 init.tasks[i].name[CONFIG_TASK_NAME_BUFLEN - 1] 78 = '\0'; 79 } else { 80 init.tasks[i].name[0] = '\0'; 81 } 71 82 } 72 83 } else {
Note:
See TracChangeset
for help on using the changeset viewer.