Changeset eb522e8 in mainline for kernel/generic/src/proc/program.c
- Timestamp:
- 2011-06-01T08:43:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d6c1f1
- Parents:
- 9e2e715 (diff), e51a514 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/program.c
r9e2e715 reb522e8 145 145 146 146 program_loader = image_addr; 147 LOG("Registered program loader at 0x%" PRIp,148 image_addr);147 LOG("Registered program loader at %p", 148 (void *) image_addr); 149 149 150 150 return EOK; … … 171 171 void *loader = program_loader; 172 172 if (!loader) { 173 as_destroy(as); 173 174 printf("Cannot spawn loader as none was registered\n"); 174 175 return ENOENT; … … 179 180 if (rc != EE_OK) { 180 181 as_destroy(as); 182 printf("Cannot spawn loader (%s)\n", elf_error(rc)); 181 183 return ENOENT; 182 184 } … … 210 212 * 211 213 */ 212 unative_t sys_program_spawn_loader(char *uspace_name, size_t name_len)214 sysarg_t sys_program_spawn_loader(char *uspace_name, size_t name_len) 213 215 { 214 216 /* Cap length of name and copy it from userspace. */ … … 219 221 int rc = copy_from_uspace(namebuf, uspace_name, name_len); 220 222 if (rc != 0) 221 return ( unative_t) rc;223 return (sysarg_t) rc; 222 224 223 225 namebuf[name_len] = 0;
Note:
See TracChangeset
for help on using the changeset viewer.