summaryrefslogtreecommitdiffstats
path: root/sys/mips/rmi/msgring.h
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2010-08-30 13:26:07 +0000
committerjchandra <jchandra@FreeBSD.org>2010-08-30 13:26:07 +0000
commitb8683f353cb6bd14f9939dbc494b2c6dd4dde6ff (patch)
tree92a1d86696716d64ff1f6787570467abd625d289 /sys/mips/rmi/msgring.h
parent7195d1ebe9296e8290098970506b239a4aedfc88 (diff)
downloadFreeBSD-src-b8683f353cb6bd14f9939dbc494b2c6dd4dde6ff.zip
FreeBSD-src-b8683f353cb6bd14f9939dbc494b2c6dd4dde6ff.tar.gz
Move debug.h to the the rge driver directory. rge.c is the only user of
debug.h. Remove debug.h references from other files.
Diffstat (limited to 'sys/mips/rmi/msgring.h')
-rw-r--r--sys/mips/rmi/msgring.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/sys/mips/rmi/msgring.h b/sys/mips/rmi/msgring.h
index 6d9fd10..6986739 100644
--- a/sys/mips/rmi/msgring.h
+++ b/sys/mips/rmi/msgring.h
@@ -374,18 +374,12 @@ message_send(unsigned int size, unsigned int code,
for (i = 0; i < 16; i++) {
status = msgrng_read_status();
- //dbg_msg("status = %Lx\n", status);
if (status & 0x6) {
continue;
} else
break;
}
- if (i == 16) {
- if (dest == 0x61)
- //dbg_msg("Processor %x: Unable to send msg to %llx\n", processor_id(), dest);
- return status & 0x6;
- }
return msgrng_read_status() & 0x06;
}
@@ -417,16 +411,10 @@ static __inline__ int
message_receive(int pri, int *size, int *code, int *src_id,
struct msgrng_msg *msg)
{
- int res = message_receive_fast(pri, *size, *code, *src_id, msg->msg0, msg->msg1, msg->msg2, msg->msg3);
-
-#ifdef MSGRING_DUMP_MESSAGES
- if (!res) {
- dbg_msg("Received msg <%llx, %llx, %llx, %llx> <%d,%d,%d>\n",
- msg->msg0, msg->msg1, msg->msg2, msg->msg3,
- *size, *code, *src_id);
- }
-#endif
-
+ int res;
+
+ res = message_receive_fast(pri, *size, *code, *src_id,
+ msg->msg0, msg->msg1, msg->msg2, msg->msg3);
return res;
}
OpenPOWER on IntegriCloud