Changeset fb13b44 in mainline for kernel/generic/src/proc/program.c
- Timestamp:
- 2019-08-06T19:57:27Z (5 years ago)
- Children:
- 103939e
- Parents:
- d89b259
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-08-10 08:35:21)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-06 19:57:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/program.c
rd89b259 rfb13b44 64 64 * @param entry_addr Program entry-point address in program address space. 65 65 * @param name Name to set for the program's task. 66 * @param answerbox Answerbox where box 0 is connected to (may be NULL). 66 67 * @param prg Buffer for storing program information. 67 68 * … … 69 70 * 70 71 */ 71 errno_t program_create(as_t *as, uspace_addr_t entry_addr, char *name, program_t *prg) 72 errno_t program_create(as_t *as, uspace_addr_t entry_addr, char *name, 73 struct answerbox *answerbox, program_t *prg) 72 74 { 73 75 uspace_arg_t *kernel_uarg = (uspace_arg_t *) … … 77 79 78 80 prg->loader_status = EOK; 79 prg->task = task_create(as, name );81 prg->task = task_create(as, name, answerbox); 80 82 if (!prg->task) { 81 83 free(kernel_uarg); … … 157 159 158 160 return program_create(as, ((elf_header_t *) image_addr)->e_entry, 159 name, prg);161 name, ipc_box_0, prg); 160 162 } 161 163 … … 191 193 192 194 return program_create(as, ((elf_header_t *) program_loader)->e_entry, 193 name, prg);195 name, &TASK->answerbox, prg); 194 196 } 195 197
Note:
See TracChangeset
for help on using the changeset viewer.