Changeset e3c762cd in mainline for generic/src/proc/task.c


Ignore:
Timestamp:
2006-05-05T11:59:19Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
de07bcf
Parents:
22cf454d
Message:

Complete implementation of copy_from_uspace() and copy_to_uspace()
for amd64 and ia32. Other architectures still compile and run,
but need to implement their own assembly-only memcpy(), memcpy_from_uspace(),
memcpy_to_uspace() and their failover parts. For these architectures
only dummy implementations are provided.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/proc/task.c

    r22cf454d re3c762cd  
    4949#include <print.h>
    5050#include <elf.h>
    51 
     51#include <syscall/copy.h>
    5252
    5353#ifndef LOADED_PROG_STACK_PAGES_NO
     
    171171 * @param uspace_task_id Userspace address of 8-byte buffer where to store current task ID.
    172172 *
    173  * @return Always returns 0.
     173 * @return 0 on success or an error code from @ref errno.h.
    174174 */
    175175__native sys_task_get_id(task_id_t *uspace_task_id)
     
    179179         * remains constant for the lifespan of the task.
    180180         */
    181         copy_to_uspace(uspace_task_id, &TASK->taskid, sizeof(TASK->taskid));
    182 
    183         return 0;
     181        return (__native) copy_to_uspace(uspace_task_id, &TASK->taskid, sizeof(TASK->taskid));
    184182}
    185183
Note: See TracChangeset for help on using the changeset viewer.