forked from M-Labs/artiq
1
0
Fork 0

runtime: [HACK] workaround for intermittent RPC crashes

This commit is contained in:
Sebastien Bourdeauducq 2015-04-28 17:15:39 +08:00
parent 1ce41d567c
commit 37ac6c4542
1 changed files with 5 additions and 0 deletions

View File

@ -298,6 +298,11 @@ static int process_input(void)
memcpy(&reply.eid, &buffer_in[9], 4); memcpy(&reply.eid, &buffer_in[9], 4);
memcpy(&reply.retval, &buffer_in[13], 4); memcpy(&reply.retval, &buffer_in[13], 4);
mailbox_send_and_wait(&reply); mailbox_send_and_wait(&reply);
/* HACK/FIXME: workaround for intermittent crashes that happen when running rpc_timing with comm_tcp */
int i;
for(i=0;i<100000;i++)
__asm__ volatile("l.nop");
/* */
user_kernel_state = USER_KERNEL_RUNNING; user_kernel_state = USER_KERNEL_RUNNING;
break; break;
} }