Changeset 6d351e6 in mainline


Ignore:
Timestamp:
2016-08-29T07:53:23Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc117a5
Parents:
519a97d
Message:

Revert changeset jakub@…

We will use the possibility to specify a different answerbox for replies
for sending page in and page out requests from the user_backend page
fault handler.

Location:
kernel/generic
Files:
2 edited

Legend:

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

    r519a97d r6d351e6  
    147147        struct task *sender;
    148148       
     149        /*
     150         * Answerbox that will receive the answer.
     151         * This will most of the times be the sender's answerbox,
     152         * but we allow for useful exceptions.
     153         */
     154        answerbox_t *callerbox;
     155
    149156        /** Phone which was used to send the call. */
    150157        phone_t *caller_phone;
  • kernel/generic/src/ipc/ipc.c

    r519a97d r6d351e6  
    7777        call->forget = false;
    7878        call->sender = NULL;
     79        call->callerbox = &TASK->answerbox;
    7980        call->buffer = NULL;
    8081}
     
    220221        spinlock_unlock(&call->forget_lock);
    221222
    222         answerbox_t *callerbox = &call->sender->answerbox;
     223        answerbox_t *callerbox = call->callerbox;
    223224        bool do_lock = ((!selflocked) || (callerbox != &TASK->answerbox));
    224225       
Note: See TracChangeset for help on using the changeset viewer.