Subversion Repositories HelenOS

Rev

Rev 3566 | Rev 3983 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3566 Rev 3896
Line 61... Line 61...
61
{
61
{
62
    loader_t *ldr;
62
    loader_t *ldr;
63
    task_id_t task_id;
63
    task_id_t task_id;
64
    int rc;
64
    int rc;
65
 
65
 
66
    /* Spawn a program loader. */  
66
    /* Connect to a program loader. */
67
    ldr = loader_spawn(path);
67
    ldr = loader_connect();
68
    if (ldr == NULL)
68
    if (ldr == NULL)
69
        return 0;
69
        return 0;
70
 
70
 
71
    /* Get task ID. */
71
    /* Get task ID. */
72
    rc = loader_get_task_id(ldr, &task_id);
72
    rc = loader_get_task_id(ldr, &task_id);
Line 87... Line 87...
87
    rc = loader_load_program(ldr);
87
    rc = loader_load_program(ldr);
88
    if (rc != EOK)
88
    if (rc != EOK)
89
        goto error;
89
        goto error;
90
 
90
 
91
    /* Run it. */
91
    /* Run it. */
92
    /* Load the program. */
-
 
93
    rc = loader_run(ldr);
92
    rc = loader_run(ldr);
94
    if (rc != EOK)
93
    if (rc != EOK)
95
        goto error;
94
        goto error;
96
 
95
 
97
    /* Success */
96
    /* Success */