Changeset eb522e8 in mainline for kernel/generic/src/proc/program.c


Ignore:
Timestamp:
2011-06-01T08:43:42Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
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.
Message:

Huuuuuge merge from development - all the work actually :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/program.c

    r9e2e715 reb522e8  
    145145               
    146146                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);
    149149               
    150150                return EOK;
     
    171171        void *loader = program_loader;
    172172        if (!loader) {
     173                as_destroy(as);
    173174                printf("Cannot spawn loader as none was registered\n");
    174175                return ENOENT;
     
    179180        if (rc != EE_OK) {
    180181                as_destroy(as);
     182                printf("Cannot spawn loader (%s)\n", elf_error(rc));
    181183                return ENOENT;
    182184        }
     
    210212 *
    211213 */
    212 unative_t sys_program_spawn_loader(char *uspace_name, size_t name_len)
     214sysarg_t sys_program_spawn_loader(char *uspace_name, size_t name_len)
    213215{
    214216        /* Cap length of name and copy it from userspace. */
     
    219221        int rc = copy_from_uspace(namebuf, uspace_name, name_len);
    220222        if (rc != 0)
    221                 return (unative_t) rc;
     223                return (sysarg_t) rc;
    222224       
    223225        namebuf[name_len] = 0;
Note: See TracChangeset for help on using the changeset viewer.