]> Zhao Yanbai Git Server - minix.git/commitdiff
move senda to sep. file
authorBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:37:02 +0000 (14:37 +0000)
committerBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:37:02 +0000 (14:37 +0000)
lib/i386/rts/Makefile.in
lib/i386/rts/_ipc.s
lib/i386/rts/_senda.s [new file with mode: 0644]

index 979dc8faa05beed2d50294afa4cce18f2a22a039..6597bb254a06fe08616418fb1368e97625d2577b 100644 (file)
@@ -7,6 +7,7 @@ LIBRARIES=libc
 libc_FILES=" \
        __sigreturn.s \
        _ipc.s \
+       _senda.s \
        brksize.s"
        
 STARTFILES="\
index 4c60c7451bf2c0b3a8cd5765c02b4f94fbb511b7..5de2d9fc7f20dc64e877802af3101c6b297ceffb 100755 (executable)
@@ -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 (file)
index 0000000..703411e
--- /dev/null
@@ -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