2010-03-23 01:09:11 +01:00
|
|
|
#include <minix/ipcconst.h>
|
|
|
|
|
2010-03-03 15:27:30 +01:00
|
|
|
.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
|