summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/usr/mbox/mailboxsp.C7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usr/mbox/mailboxsp.C b/src/usr/mbox/mailboxsp.C
index aad84b043..3add7caf9 100644
--- a/src/usr/mbox/mailboxsp.C
+++ b/src/usr/mbox/mailboxsp.C
@@ -137,6 +137,11 @@ errlHndl_t MailboxSp::_init()
spless = false;
}
+ // create task before registering the msgQ so any waiting interrupts get
+ // handled as soon as the msgQ is registered with the interrupt service
+ // provider
+ task_create(MailboxSp::msg_handler, NULL);
+
if(!spless)
{
// Initialize the mailbox hardware
@@ -161,8 +166,6 @@ errlHndl_t MailboxSp::_init()
MSG_IPC,
INTR::ISN_INTERPROC);
- task_create(MailboxSp::msg_handler, NULL);
-
if(!spless)
{
OpenPOWER on IntegriCloud