6.828 icon indicating copy to clipboard operation
6.828 copied to clipboard

sys_ipc_try_send: set return value for sys_ipc_recv

Open HeyiSun opened this issue 3 years ago • 0 comments

The function is here: https://github.com/SimpCosm/6.828/blob/6a0a24dce33484f545f7a883b9b99fc190f25c3f/lab4/code/kern/syscall.c#L314-L357

I think you need e->env_tf.tf_regs.reg_eax = 0;. This makes sure that the sys_ipc_recv called by destination Env returns 0 on success IPC.

HeyiSun avatar Mar 07 '21 21:03 HeyiSun