diff --git a/include/kernel/port.h b/include/kernel/port.h index 6472640..c755620 100644 --- a/include/kernel/port.h +++ b/include/kernel/port.h @@ -9,12 +9,6 @@ enum port_status { PORT_OFFLINE = 0, /* port is connected and ready to send messages */ PORT_READY, - /* port has sent a message, and is waiting for the remote to receive it - */ - PORT_SEND_BLOCKED, - /* port has sent a message, and the remote has received it. waiting for - * the remote to reply. */ - PORT_REPLY_BLOCKED, }; struct port { diff --git a/kernel/channel.c b/kernel/channel.c index 4085872..ff4828d 100644 --- a/kernel/channel.c +++ b/kernel/channel.c @@ -102,7 +102,6 @@ static struct msg *get_next_msg( switch (msg->msg_status) { case KMSG_WAIT_RECEIVE: msg->msg_status = KMSG_WAIT_REPLY; - msg->msg_sender_port->p_status = PORT_REPLY_BLOCKED; channel->c_msg_waiting--; return msg; case KMSG_ASYNC: diff --git a/kernel/port.c b/kernel/port.c index bcda2b8..f633f2c 100644 --- a/kernel/port.c +++ b/kernel/port.c @@ -148,7 +148,6 @@ kern_status_t port_send_msg( unsigned long flags; channel_lock_irqsave(port->p_remote, &flags); - port->p_status = PORT_SEND_BLOCKED; channel_enqueue_msg(port->p_remote, &msg); channel_unlock_irqrestore(port->p_remote, flags);