From 60edf5b3ea9379ce24ebfc028487389c66694c6b Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 15 May 1992 13:14:55 +0000 Subject: [PATCH] Added some missing files --- mach/minix/libsys/LIST | 3 +++ mach/minix/libsys/_sendrec.s | 34 ++++++++++++++++++++++++++++++++++ mach/minix/libsys/brksize.s | 8 ++++---- mach/minix/libsys/sendrec.s | 36 +++--------------------------------- 4 files changed, 44 insertions(+), 37 deletions(-) create mode 100644 mach/minix/libsys/_sendrec.s diff --git a/mach/minix/libsys/LIST b/mach/minix/libsys/LIST index bed45182a..3ae9bdb91 100644 --- a/mach/minix/libsys/LIST +++ b/mach/minix/libsys/LIST @@ -55,6 +55,7 @@ unlink.s utime.s wait.s write.s +sendrec.s _exit.c _access.c _alarm.c @@ -117,5 +118,7 @@ _unlink.c _utime.c _wait.c _write.c +_sendrec.s +brksize.s vectab.c errno.c diff --git a/mach/minix/libsys/_sendrec.s b/mach/minix/libsys/_sendrec.s new file mode 100644 index 000000000..3376a7403 --- /dev/null +++ b/mach/minix/libsys/_sendrec.s @@ -0,0 +1,34 @@ +.sect .text; .sect .rom; .sect .data; .sect .bss +.sect .text +.define __send, __receive, __sendrec + +! See ../h/com.h for C definitions +SEND = 1 +RECEIVE = 2 +BOTH = 3 +SYSVEC = 32 + +!*========================================================================* +! _send and _receive * +!*========================================================================* +! _send(), _receive(), _sendrec() all save bp, but destroy ax, bx, and cx. +.extern __send, __receive, __sendrec +__send: mov cx,SEND ! _send(dest, ptr) + jmp L0 + +__receive: + mov cx,RECEIVE ! _receive(src, ptr) + jmp L0 + +__sendrec: + mov cx,BOTH ! _sendrec(srcdest, ptr) + jmp L0 + + L0: push bp ! save bp + mov bp,sp ! can't index off sp + mov ax,4(bp) ! ax = dest-src + mov bx,6(bp) ! bx = message pointer + int SYSVEC ! trap to the kernel + pop bp ! restore bp + ret ! return + diff --git a/mach/minix/libsys/brksize.s b/mach/minix/libsys/brksize.s index aec64b060..713723c5d 100644 --- a/mach/minix/libsys/brksize.s +++ b/mach/minix/libsys/brksize.s @@ -1,5 +1,5 @@ -.define _brksize -.sect .text; .sect .rom; .sect .data -.extern endbss, _brksize +.sect .text; .sect .rom; .sect .data; .sect .bss +.define __brksize .sect .data -_brksize: .data2 endbss +.extern endbss, __brksize +__brksize: .data2 endbss diff --git a/mach/minix/libsys/sendrec.s b/mach/minix/libsys/sendrec.s index 5ff38210d..d4471db5d 100644 --- a/mach/minix/libsys/sendrec.s +++ b/mach/minix/libsys/sendrec.s @@ -1,35 +1,5 @@ -.sect .text; .sect .rom; .sect .data -.define _send, _receive, _sendrec -.extern _send, _receive, _sendrec -! See ../h/com.h for C definitions -SEND = 1 -RECEIVE = 2 -BOTH = 3 -SYSVEC = 32 - -!*========================================================================* -! send and receive * -!*========================================================================* -! send(), receive(), sendrec() all save bp, but destroy ax, bx, and cx. - +.sect .text; .sect .rom; .sect .data; .sect .bss .sect .text - -_send: mov cx,SEND ! send(dest, ptr) - jmp L0 - -_receive: - mov cx,RECEIVE ! receive(src, ptr) - jmp L0 - +.define _sendrec _sendrec: - mov cx,BOTH ! sendrec(srcdest, ptr) - jmp L0 - - L0: push bp ! save bp - mov bp,sp ! can't index off sp - mov ax,4(bp) ! ax = dest-src - mov bx,6(bp) ! bx = message pointer - int SYSVEC ! trap to the kernel - pop bp ! restore bp - ret ! return - + jmp __sendrec -- 2.34.1