From: Ben Gras Date: Thu, 11 Dec 2008 14:37:02 +0000 (+0000) Subject: move senda to sep. file X-Git-Tag: v3.1.4~198 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/rndc.html?a=commitdiff_plain;h=eae27c899a35f6a4f6eb734653748d17f8e2790a;p=minix.git move senda to sep. file --- diff --git a/lib/i386/rts/Makefile.in b/lib/i386/rts/Makefile.in index 979dc8faa..6597bb254 100644 --- a/lib/i386/rts/Makefile.in +++ b/lib/i386/rts/Makefile.in @@ -7,6 +7,7 @@ LIBRARIES=libc libc_FILES=" \ __sigreturn.s \ _ipc.s \ + _senda.s \ brksize.s" STARTFILES="\ diff --git a/lib/i386/rts/_ipc.s b/lib/i386/rts/_ipc.s index 4c60c7451..5de2d9fc7 100755 --- a/lib/i386/rts/_ipc.s +++ b/lib/i386/rts/_ipc.s @@ -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 + diff --git a/lib/i386/rts/_senda.s b/lib/i386/rts/_senda.s new file mode 100644 index 000000000..703411e9e --- /dev/null +++ b/lib/i386/rts/_senda.s @@ -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