move senda to sep. file

This commit is contained in:
Ben Gras 2008-12-11 14:37:02 +00:00
parent 3e29947e28
commit eae27c899a
3 changed files with 24 additions and 14 deletions

View File

@ -7,6 +7,7 @@ LIBRARIES=libc
libc_FILES=" \
__sigreturn.s \
_ipc.s \
_senda.s \
brksize.s"
STARTFILES="\

View File

@ -7,13 +7,10 @@ RECEIVE = 2
SENDREC = 3
NOTIFY = 4
SENDNB = 5
SENDA = 16
SYSVEC = 33 ! trap to kernel
SRC_DST = 8 ! source/ destination process
MSGTAB = 8 ! message table
MESSAGE = 12 ! message pointer
TABCOUNT = 12 ! number of entries in message table
!*========================================================================*
! IPC assembly routines *
@ -79,14 +76,4 @@ __sendnb:
pop ebp
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
View 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