Changeset 0f94c3d in mainline
- 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
- Location:
- kernel
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/boot/boot.S
r0d5a50c r0f94c3d 224 224 225 225 addl $16, %esi 226 addq $ 16, %rdi226 addq $48, %rdi 227 227 228 228 loop mods_loop -
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 { -
kernel/generic/include/config.h
r0d5a50c r0f94c3d 41 41 #define STACK_SIZE PAGE_SIZE 42 42 43 #define CONFIG_INIT_TASKS 32 43 #define CONFIG_INIT_TASKS 32 44 45 #define CONFIG_TASK_NAME_BUFLEN 32 44 46 45 47 typedef struct { 46 48 uintptr_t addr; 47 49 size_t size; 50 char name[CONFIG_TASK_NAME_BUFLEN]; 48 51 } init_task_t; 49 52 -
kernel/generic/src/main/kinit.c
r0d5a50c r0f94c3d 175 175 continue; 176 176 } 177 178 char *name = init.tasks[i].name; 179 if (name[0] == '\0') name = "init-bin"; 177 180 178 181 int rc = program_create_from_image((void *) init.tasks[i].addr, 179 "init-bin", &programs[i]);182 name, &programs[i]); 180 183 181 184 if ((rc == 0) && (programs[i].task != NULL)) { -
kernel/generic/src/proc/task.c
r0d5a50c r0f94c3d 397 397 398 398 #ifdef __32_BITS__ 399 printf("%-6" PRIu64 " %-1 0s %-3" PRIu32 " %10p %10p %9" PRIu64399 printf("%-6" PRIu64 " %-12s %-3" PRIu32 " %10p %10p %9" PRIu64 400 400 "%c %7ld %6ld", t->taskid, t->name, t->context, t, t->as, cycles, 401 401 suffix, atomic_get(&t->refcount), atomic_get(&t->active_calls)); … … 403 403 404 404 #ifdef __64_BITS__ 405 printf("%-6" PRIu64 " %-1 0s %-3" PRIu32 " %18p %18p %9" PRIu64405 printf("%-6" PRIu64 " %-12s %-3" PRIu32 " %18p %18p %9" PRIu64 406 406 "%c %7ld %6ld", t->taskid, t->name, t->context, t, t->as, cycles, 407 407 suffix, atomic_get(&t->refcount), atomic_get(&t->active_calls)); … … 430 430 printf("taskid name ctx address as " 431 431 "cycles threads calls callee\n"); 432 printf("------ ---------- --- ---------- ---------- "432 printf("------ ------------ --- ---------- ---------- " 433 433 "---------- ------- ------ ------>\n"); 434 434 #endif … … 437 437 printf("taskid name ctx address as " 438 438 "cycles threads calls callee\n"); 439 printf("------ ---------- --- ------------------ ------------------ "439 printf("------ ------------ --- ------------------ ------------------ " 440 440 "---------- ------- ------ ------>\n"); 441 441 #endif
Note:
See TracChangeset
for help on using the changeset viewer.