runtime/mailbox: fix mailbox_acknowledged for first message

This commit is contained in:
Sebastien Bourdeauducq 2015-04-28 16:51:55 +08:00
parent 53055a045d
commit 1ce41d567c

View File

@ -51,7 +51,10 @@ void mailbox_send(void *ptr)
int mailbox_acknowledged(void)
{
return KERNELCPU_MAILBOX != last_transmission;
unsigned int m;
m = KERNELCPU_MAILBOX;
return !m || (m != last_transmission);
}
void mailbox_send_and_wait(void *ptr)