Changeset 0993087 in mainline


Ignore:
Timestamp:
2008-09-24T16:11:35Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
119c335
Parents:
4470e26
Message:

Fix bugs in getting task ID from loader (was breaking ppc32).

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/loader.c

    r4470e26 r0993087  
    3636#include <ipc/loader.h>
    3737#include <libc.h>
     38#include <task.h>
    3839#include <string.h>
    3940#include <stdlib.h>
     
    9495        /* Get task ID. */
    9596        req = async_send_0(ldr->phone_id, LOADER_GET_TASKID, &answer);
    96         rc = ipc_data_read_start(ldr->phone_id, task_id, sizeof(task_id));
     97        rc = ipc_data_read_start(ldr->phone_id, task_id, sizeof(task_id_t));
    9798        if (rc != EOK) {
    9899                async_wait_for(req, NULL);
  • uspace/lib/libc/include/loader/loader.h

    r4470e26 r0993087  
    3737#define LIBC_LOADER_H_
    3838
     39#include <task.h>
     40
    3941/** Abstraction of a loader connection */
    4042typedef struct {
  • uspace/srv/loader/main.c

    r4470e26 r0993087  
    101101        if (len > sizeof(task_id)) len = sizeof(task_id);
    102102
    103         ipc_data_write_finalize(callid, &task_id, len);
     103        ipc_data_read_finalize(callid, &task_id, len);
    104104        ipc_answer_0(rid, EOK);
    105105}
Note: See TracChangeset for help on using the changeset viewer.