Changes in kernel/generic/src/proc/program.c [bfe43d5:fa3b8e4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/program.c
rbfe43d5 rfa3b8e4 145 145 146 146 program_loader = image_addr; 147 LOG("Registered program loader at %p",148 (void *)image_addr);147 LOG("Registered program loader at 0x%" PRIp, 148 image_addr); 149 149 150 150 return EOK; … … 171 171 void *loader = program_loader; 172 172 if (!loader) { 173 as_destroy(as);174 173 printf("Cannot spawn loader as none was registered\n"); 175 174 return ENOENT; … … 180 179 if (rc != EE_OK) { 181 180 as_destroy(as); 182 printf("Cannot spawn loader (%s)\n", elf_error(rc));183 181 return ENOENT; 184 182 } … … 212 210 * 213 211 */ 214 sysarg_t sys_program_spawn_loader(char *uspace_name, size_t name_len)212 unative_t sys_program_spawn_loader(char *uspace_name, size_t name_len) 215 213 { 216 214 /* Cap length of name and copy it from userspace. */ … … 221 219 int rc = copy_from_uspace(namebuf, uspace_name, name_len); 222 220 if (rc != 0) 223 return ( sysarg_t) rc;221 return (unative_t) rc; 224 222 225 223 namebuf[name_len] = 0;
Note:
See TracChangeset
for help on using the changeset viewer.