IPC changes: - receive() is changed to take an additional parameter, which is a pointer to a status code. - The status code is filled in by the kernel to provide additional information to the caller. For now, the kernel only fills in the IPC call used by the sender. Syslib changes: - sef_receive() has been split into sef_receive() (with the original semantics) and sef_receive_status() which exposes the status code to userland. - Ideally, every sys process should gradually switch to sef_receive_status() and use is_ipc_notify() as a dependable way to check for notify. - SEF has been modified to use is_ipc_notify() and demonstrate how to use the new status code.
22 lines
400 B
ArmAsm
22 lines
400 B
ArmAsm
#include <minix/ipcconst.h>
|
|
|
|
.globl __senda
|
|
|
|
SYSVEC = 33
|
|
|
|
MSGTAB = 8 /* message table */
|
|
TABCOUNT = 12 /* number of entries in message table */
|
|
|
|
.text
|
|
|
|
__senda:
|
|
push %ebp
|
|
movl %esp, %ebp
|
|
push %ebx
|
|
movl TABCOUNT(%ebp), %eax /* eax = count */
|
|
movl MSGTAB(%ebp), %ebx /* ebx = table */
|
|
movl $SENDA, %ecx /* _senda(table, count) */
|
|
int $SYSVEC /* trap to the kernel */
|
|
pop %ebx
|
|
pop %ebp
|
|
ret
|