move senda to sep. file
This commit is contained in:
parent
3e29947e28
commit
eae27c899a
@ -7,6 +7,7 @@ LIBRARIES=libc
|
|||||||
libc_FILES=" \
|
libc_FILES=" \
|
||||||
__sigreturn.s \
|
__sigreturn.s \
|
||||||
_ipc.s \
|
_ipc.s \
|
||||||
|
_senda.s \
|
||||||
brksize.s"
|
brksize.s"
|
||||||
|
|
||||||
STARTFILES="\
|
STARTFILES="\
|
||||||
|
@ -7,13 +7,10 @@ RECEIVE = 2
|
|||||||
SENDREC = 3
|
SENDREC = 3
|
||||||
NOTIFY = 4
|
NOTIFY = 4
|
||||||
SENDNB = 5
|
SENDNB = 5
|
||||||
SENDA = 16
|
|
||||||
SYSVEC = 33 ! trap to kernel
|
SYSVEC = 33 ! trap to kernel
|
||||||
|
|
||||||
SRC_DST = 8 ! source/ destination process
|
SRC_DST = 8 ! source/ destination process
|
||||||
MSGTAB = 8 ! message table
|
|
||||||
MESSAGE = 12 ! message pointer
|
MESSAGE = 12 ! message pointer
|
||||||
TABCOUNT = 12 ! number of entries in message table
|
|
||||||
|
|
||||||
!*========================================================================*
|
!*========================================================================*
|
||||||
! IPC assembly routines *
|
! IPC assembly routines *
|
||||||
@ -79,14 +76,4 @@ __sendnb:
|
|||||||
pop ebp
|
pop ebp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
__senda:
|
|
||||||
push ebp
|
|
||||||
mov ebp, esp
|
|
||||||
push ebx
|
|
||||||
mov eax, TABCOUNT(ebp) ! eax = count
|
|
||||||
mov ebx, MSGTAB(ebp) ! ebx = table
|
|
||||||
mov ecx, SENDA ! _senda(table, count)
|
|
||||||
int SYSVEC ! trap to the kernel
|
|
||||||
pop ebx
|
|
||||||
pop ebp
|
|
||||||
ret
|
|
||||||
|
22
lib/i386/rts/_senda.s
Normal file
22
lib/i386/rts/_senda.s
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
.sect .text; .sect .rom; .sect .data; .sect .bss
|
||||||
|
.define __senda
|
||||||
|
|
||||||
|
SENDA = 16
|
||||||
|
SYSVEC = 33
|
||||||
|
|
||||||
|
MSGTAB = 8 ! message table
|
||||||
|
TABCOUNT = 12 ! number of entries in message table
|
||||||
|
|
||||||
|
.sect .text
|
||||||
|
|
||||||
|
__senda:
|
||||||
|
push ebp
|
||||||
|
mov ebp, esp
|
||||||
|
push ebx
|
||||||
|
mov eax, TABCOUNT(ebp) ! eax = count
|
||||||
|
mov ebx, MSGTAB(ebp) ! ebx = table
|
||||||
|
mov ecx, SENDA ! _senda(table, count)
|
||||||
|
int SYSVEC ! trap to the kernel
|
||||||
|
pop ebx
|
||||||
|
pop ebp
|
||||||
|
ret
|
Loading…
x
Reference in New Issue
Block a user