Changeset 9247c02c in mainline for kernel


Ignore:
Timestamp:
2011-08-19T14:06:21Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7a2f7ecd
Parents:
2f2f1186 (diff), e2ab36f1 (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:

Merge from lp:~jakub/helenos/camp2011.

Location:
kernel/generic
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ipc/ipc.h

    r2f2f1186 r9247c02c  
    4040#include <synch/mutex.h>
    4141#include <synch/waitq.h>
     42#include <typedefs.h>
    4243
    4344#define IPC_MAX_PHONES  32
     
    9899        sysarg_t args[IPC_CALL_LEN];
    99100        /** Task which made or forwarded the call with IPC_FF_ROUTE_FROM_ME. */
    100         struct task *task;
     101        task_id_t task_id;
    101102        /** Phone which made or last masqueraded this call. */
    102103        phone_t *phone;
  • kernel/generic/src/ipc/event.c

    r2f2f1186 r9247c02c  
    161161                                IPC_SET_ARG5(call->data, a5);
    162162                               
     163                                call->data.task_id = TASK ? TASK->taskid : 0;
     164                               
    163165                                irq_spinlock_lock(&event->answerbox->irq_lock, true);
    164166                                list_append(&call->link, &event->answerbox->irq_notifs);
  • kernel/generic/src/ipc/ipc.c

    r2f2f1186 r9247c02c  
    294294                atomic_inc(&phone->active_calls);
    295295                call->data.phone = phone;
    296                 call->data.task = TASK;
     296                call->data.task_id = TASK->taskid;
    297297        }
    298298       
     
    406406                        call->caller_phone = call->data.phone;
    407407                call->data.phone = newphone;
    408                 call->data.task = TASK;
     408                call->data.task_id = TASK->taskid;
    409409        }
    410410       
  • kernel/generic/src/ipc/sysipc.c

    r2f2f1186 r9247c02c  
    5454#include <mm/as.h>
    5555#include <print.h>
     56#include <macros.h>
    5657
    5758/**
     
    375376                                    IPC_GET_ARG2(*olddata),
    376377                                    IPC_GET_ARG3(*olddata),
    377                                     (sysarg_t) olddata->task,
    378                                     (sysarg_t) TASK);
     378                                    LOWER32(olddata->task_id),
     379                                    UPPER32(olddata->task_id));
    379380                                IPC_SET_RETVAL(answer->data, rc);
    380381                        }
Note: See TracChangeset for help on using the changeset viewer.