Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5d96851 in mainline for uspace/lib/libc/generic/task.c


Ignore:
Timestamp:
2009-07-06T19:17:49Z (12 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
0315679
Parents:
7114d83
Message:

Pass task ID to NS from loader. This prevents ID spoofing by user apps.

File:
1 edited

Legend:

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

    r7114d83 r5d96851  
    163163int task_retval(int val)
    164164{
    165         task_id_t id;
    166 
    167         id = task_get_id();
    168         return (int) async_req_3_0(PHONE_NS, NS_RETVAL, LOWER32(id),
    169             UPPER32(id), val);
     165        return (int) async_req_1_0(PHONE_NS, NS_RETVAL, val);
    170166}
    171167
Note: See TracChangeset for help on using the changeset viewer.