Remove obsolete m_ptr calculations in try_one() and mini_senda().

This commit is contained in:
Kees van Reeuwijk 2010-01-14 12:04:24 +00:00
parent d96360e4d4
commit 9d247900c0

View file

@ -856,16 +856,12 @@ field, caller->p_name, entry, priv(caller)->s_asynsize, priv(caller)->s_asyntab)
/*===========================================================================* /*===========================================================================*
* mini_senda * * mini_senda *
*===========================================================================*/ *===========================================================================*/
PRIVATE int mini_senda(caller_ptr, table, size) PRIVATE int mini_senda(struct proc *caller_ptr, asynmsg_t *table, size_t size)
struct proc *caller_ptr;
asynmsg_t *table;
size_t size;
{ {
int i, dst_p, done, do_notify, r; int i, dst_p, done, do_notify, r;
unsigned flags; unsigned flags;
struct proc *dst_ptr; struct proc *dst_ptr;
struct priv *privp; struct priv *privp;
message *m_ptr;
asynmsg_t tabent; asynmsg_t tabent;
vir_bytes table_v = (vir_bytes) table; vir_bytes table_v = (vir_bytes) table;
vir_bytes linaddr; vir_bytes linaddr;
@ -1002,9 +998,6 @@ size_t size;
!(dst_ptr->p_misc_flags & MF_REPLY_PEND))) !(dst_ptr->p_misc_flags & MF_REPLY_PEND)))
{ {
/* Destination is indeed waiting for this message. */ /* Destination is indeed waiting for this message. */
m_ptr= &table[i].msg; /* Note: pointer in the
* caller's address space.
*/
/* Copy message from sender. */ /* Copy message from sender. */
tabent.result= QueueMess(caller_ptr->p_endpoint, tabent.result= QueueMess(caller_ptr->p_endpoint,
linaddr + (vir_bytes) &table[i].msg - linaddr + (vir_bytes) &table[i].msg -
@ -1075,17 +1068,12 @@ struct proc *caller_ptr;
/*===========================================================================* /*===========================================================================*
* try_one * * try_one *
*===========================================================================*/ *===========================================================================*/
PRIVATE int try_one(src_ptr, dst_ptr, postponed) PRIVATE int try_one(struct proc *src_ptr, struct proc *dst_ptr, int *postponed)
struct proc *src_ptr;
struct proc *dst_ptr;
int *postponed;
{ {
int i, do_notify, done; int i, do_notify, done;
unsigned flags; unsigned flags;
size_t size; size_t size;
endpoint_t dst_e; endpoint_t dst_e;
asynmsg_t *table_ptr;
message *m_ptr;
struct priv *privp; struct priv *privp;
asynmsg_t tabent; asynmsg_t tabent;
vir_bytes table_v; vir_bytes table_v;
@ -1162,10 +1150,6 @@ int *postponed;
} }
/* Deliver message */ /* Deliver message */
table_ptr= (asynmsg_t *)privp->s_asyntab;
m_ptr= &table_ptr[i].msg; /* Note: pointer in the
* caller's address space.
*/
A_RETRIEVE(i, msg); A_RETRIEVE(i, msg);
r = QueueMess(src_ptr->p_endpoint, vir2phys(&tabent.msg), r = QueueMess(src_ptr->p_endpoint, vir2phys(&tabent.msg),
dst_ptr); dst_ptr);