From: ceriel Date: Fri, 12 Dec 1986 12:49:50 +0000 (+0000) Subject: Initial revision X-Git-Tag: release-5-5~5093 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4c956c400e225db51a2e05ef58e3f3d0523f3e8b;p=ack.git Initial revision --- diff --git a/mach/vax4/libbsd4_1a/LIST b/mach/vax4/libbsd4_1a/LIST new file mode 100644 index 000000000..31b368e7c --- /dev/null +++ b/mach/vax4/libbsd4_1a/LIST @@ -0,0 +1,60 @@ +tail_mon.a +_exit.s +access.s +acct.s +alarm.s +chdir.s +chmod.s +chown.s +close.s +creat.s +dup.s +errmon.s +execl.s +execle.s +execv.s +execve.s +fork.s +fstat.s +ftime.s +getgid.s +getpid.s +getuid.s +ioctl.s +kill.s +link.s +lseek.s +mknod.s +mount.s +mpx.s +nice.s +open.s +pause.s +pipe.s +profil.s +ptrace.s +read.s +sbrk.s +setgid.s +setuid.s +signal.s +stat.s +stime.s +sync.s +syscall.s +time.s +times.s +umask.s +umount.s +unlink.s +utime.s +vadvise.s +vfork.s +vhangup.s +vlimit.s +vread.s +vtimes.s +vwait.s +vwrite.s +wait.s +write.s diff --git a/mach/vax4/libbsd4_1a/Makefile b/mach/vax4/libbsd4_1a/Makefile new file mode 100644 index 000000000..92b9aaf63 --- /dev/null +++ b/mach/vax4/libbsd4_1a/Makefile @@ -0,0 +1,30 @@ +# $Header$ +install: cp + +cp: all + ../../install head_em + ../../install tail_mon + rm -f head_em tail_mon + +cmp: all + -../../compare head_em + -../../compare tail_mon + rm -f head_em tail_mon + +all: head_em tail_mon + +head_em: head_em.s + vax4 -I../../../h -c head_em.s ; mv head_em.o head_em + +tail_mon: + ASAR=ar ; export ASAR ;\ + RANLIB=ranlib ; export RANLIB ;\ + march . tail_mon + +clean: + rm -f *.o +opr: + make pr | opr +pr: + @pr `pwd`/Makefile `pwd`/head_em.s + @pr -l33 `tail +1 LIST|sort` diff --git a/mach/vax4/libbsd4_1a/_exit.s b/mach/vax4/libbsd4_1a/_exit.s new file mode 100644 index 000000000..04e8e2412 --- /dev/null +++ b/mach/vax4/libbsd4_1a/_exit.s @@ -0,0 +1,8 @@ +.globl __exit +.set exit,1 + +.align 1 +__exit: + .word 0x0000 + chmk $exit + halt diff --git a/mach/vax4/libbsd4_1a/access.s b/mach/vax4/libbsd4_1a/access.s new file mode 100644 index 000000000..0c1baffd4 --- /dev/null +++ b/mach/vax4/libbsd4_1a/access.s @@ -0,0 +1,11 @@ +.globl _access +.set access,33 + +.align 1 +_access: + .word 0x0000 + chmk $access + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/acct.s b/mach/vax4/libbsd4_1a/acct.s new file mode 100644 index 000000000..f201d79fa --- /dev/null +++ b/mach/vax4/libbsd4_1a/acct.s @@ -0,0 +1,11 @@ +.globl _acct +.set acct,51 + +.align 1 +_acct: + .word 0x0000 + chmk $acct + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/alarm.s b/mach/vax4/libbsd4_1a/alarm.s new file mode 100644 index 000000000..b7079b5ce --- /dev/null +++ b/mach/vax4/libbsd4_1a/alarm.s @@ -0,0 +1,8 @@ +.globl _alarm +.set alarm,27 + +.align 1 +_alarm: + .word 0x0000 + chmk $alarm + ret diff --git a/mach/vax4/libbsd4_1a/chdir.s b/mach/vax4/libbsd4_1a/chdir.s new file mode 100644 index 000000000..7bf11fd1e --- /dev/null +++ b/mach/vax4/libbsd4_1a/chdir.s @@ -0,0 +1,12 @@ +.globl _chdir +.set chdir,12 + +.align 1 +_chdir: + .word 0x0000 + chmk $chdir + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/chmod.s b/mach/vax4/libbsd4_1a/chmod.s new file mode 100644 index 000000000..9af97c3c6 --- /dev/null +++ b/mach/vax4/libbsd4_1a/chmod.s @@ -0,0 +1,12 @@ +.globl _chmod +.set chmod,15 + +.align 1 +_chmod: + .word 0x0000 + chmk $chmod + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/chown.s b/mach/vax4/libbsd4_1a/chown.s new file mode 100644 index 000000000..aa276df7d --- /dev/null +++ b/mach/vax4/libbsd4_1a/chown.s @@ -0,0 +1,12 @@ +.globl _chown +.set chown,16 + +.align 1 +_chown: + .word 0x0000 + chmk $chown + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/close.s b/mach/vax4/libbsd4_1a/close.s new file mode 100644 index 000000000..743c9b06e --- /dev/null +++ b/mach/vax4/libbsd4_1a/close.s @@ -0,0 +1,12 @@ +.globl _close +.set close,6 + +.align 1 +_close: + .word 0x0000 + chmk $close + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/creat.s b/mach/vax4/libbsd4_1a/creat.s new file mode 100644 index 000000000..bee4615aa --- /dev/null +++ b/mach/vax4/libbsd4_1a/creat.s @@ -0,0 +1,11 @@ +.globl _creat +.set creat,8 + +.align 1 +_creat: + .word 0x0000 + chmk $creat + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/dup.s b/mach/vax4/libbsd4_1a/dup.s new file mode 100644 index 000000000..c82e2a7b5 --- /dev/null +++ b/mach/vax4/libbsd4_1a/dup.s @@ -0,0 +1,19 @@ +.globl _dup +.globl _dup2 +.set dup,41 + +.align 1 +_dup: + .word 0x0000 + brb 1f + +.align 1 +_dup2: + .word 0x0000 + bisb2 $0100,4(ap) +1: + chmk $dup + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/errmon.s b/mach/vax4/libbsd4_1a/errmon.s new file mode 100644 index 000000000..dee150d63 --- /dev/null +++ b/mach/vax4/libbsd4_1a/errmon.s @@ -0,0 +1,8 @@ +.globl errmon +.comm _errno,4 + +.align 1 +errmon: + movl r0,_errno + mnegl $1,r0 + ret diff --git a/mach/vax4/libbsd4_1a/execl.s b/mach/vax4/libbsd4_1a/execl.s new file mode 100644 index 000000000..e4016d9cc --- /dev/null +++ b/mach/vax4/libbsd4_1a/execl.s @@ -0,0 +1,11 @@ +.globl _execl +.globl _environ + +.align 1 +_execl: + .word 0x0000 + pushl _environ + pushab 8(ap) + pushl 4(ap) + calls $3,_execve + ret diff --git a/mach/vax4/libbsd4_1a/execle.s b/mach/vax4/libbsd4_1a/execle.s new file mode 100644 index 000000000..f206e6ace --- /dev/null +++ b/mach/vax4/libbsd4_1a/execle.s @@ -0,0 +1,11 @@ +.globl _execle + +.align 1 +_execle: + .word 0x0000 + movl (ap),r0 + pushl (ap)[r0] + pushab 8(ap) + pushl 4(ap) + calls $3,_execve + ret diff --git a/mach/vax4/libbsd4_1a/execv.s b/mach/vax4/libbsd4_1a/execv.s new file mode 100644 index 000000000..2df3ad1c7 --- /dev/null +++ b/mach/vax4/libbsd4_1a/execv.s @@ -0,0 +1,11 @@ +.globl _execv +.globl _environ + +.align 1 +_execv: + .word 0x0000 + pushl _environ + pushl 8(ap) + pushl 4(ap) + calls $3,_execve + ret diff --git a/mach/vax4/libbsd4_1a/execve.s b/mach/vax4/libbsd4_1a/execve.s new file mode 100644 index 000000000..a51c2a1b1 --- /dev/null +++ b/mach/vax4/libbsd4_1a/execve.s @@ -0,0 +1,8 @@ +.globl _execve +.set exec,59 + +.align 1 +_execve: + .word 0x0000 + chmk $exec + jmp errmon diff --git a/mach/vax4/libbsd4_1a/fork.s b/mach/vax4/libbsd4_1a/fork.s new file mode 100644 index 000000000..8ad3e9372 --- /dev/null +++ b/mach/vax4/libbsd4_1a/fork.s @@ -0,0 +1,14 @@ +.globl _fork +.set fork,2 + +.align 1 +_fork: + .word 0x0000 + chmk $fork + bcc 1f + jmp errmon +1: + jlbc r1,1f + clrl r0 +1: + ret diff --git a/mach/vax4/libbsd4_1a/fstat.s b/mach/vax4/libbsd4_1a/fstat.s new file mode 100644 index 000000000..b9fef791b --- /dev/null +++ b/mach/vax4/libbsd4_1a/fstat.s @@ -0,0 +1,12 @@ +.globl _fstat +.set fstat,28 + +.align 1 +_fstat: + .word 0x0000 + chmk $fstat + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/ftime.s b/mach/vax4/libbsd4_1a/ftime.s new file mode 100644 index 000000000..ecf056017 --- /dev/null +++ b/mach/vax4/libbsd4_1a/ftime.s @@ -0,0 +1,8 @@ +.globl _ftime +.set ftime,35 + +.align 1 +_ftime: + .word 0x0000 + chmk $ftime + ret diff --git a/mach/vax4/libbsd4_1a/getgid.s b/mach/vax4/libbsd4_1a/getgid.s new file mode 100644 index 000000000..9ae921ad7 --- /dev/null +++ b/mach/vax4/libbsd4_1a/getgid.s @@ -0,0 +1,15 @@ +.globl _getgid, _getegid +.set getgid,47 + +.align 1 +_getgid: + .word 0x0000 + chmk $getgid + ret + +.align 1 +_getegid: + .word 0x0000 + chmk $getgid + movl r1,r0 + ret diff --git a/mach/vax4/libbsd4_1a/getpid.s b/mach/vax4/libbsd4_1a/getpid.s new file mode 100644 index 000000000..06ab9dbbd --- /dev/null +++ b/mach/vax4/libbsd4_1a/getpid.s @@ -0,0 +1,15 @@ +.globl _getpid, _getppid +.set getpid,20 + +.align 1 +_getpid: + .word 0x0000 + chmk $getpid + ret + +.align 1 +_getppid: + .word 0x0000 + chmk $getpid + movl r1,r0 + ret diff --git a/mach/vax4/libbsd4_1a/getuid.s b/mach/vax4/libbsd4_1a/getuid.s new file mode 100644 index 000000000..2d1a13e29 --- /dev/null +++ b/mach/vax4/libbsd4_1a/getuid.s @@ -0,0 +1,15 @@ +.globl _getuid, _geteuid +.set getuid,24 + +.align 1 +_getuid: + .word 0x0000 + chmk $getuid + ret + +.align 1 +_geteuid: + .word 0x0000 + chmk $getuid + movl r1,r0 + ret diff --git a/mach/vax4/libbsd4_1a/head_em.s b/mach/vax4/libbsd4_1a/head_em.s new file mode 100644 index 000000000..2608535e4 --- /dev/null +++ b/mach/vax4/libbsd4_1a/head_em.s @@ -0,0 +1,76 @@ +#include "em_abs.h" + + # $Header$ + +.globl hol0 +.globl .reghp +.globl .trppc +.globl .trpim + + # run time startoff + .word 0 + bispsw $0100 # set FU(0100) + movl 4(sp),r0 + clrl -4(r0) + movl sp,r0 + movl (r0)+,r1 + movl r0,r2 +a1: + tstl (r0)+ + bneq a1 + cmpl r0,(r2) + blssu a2 + tstl -(r0) +a2: + pushl r0 + pushl r2 + pushl r1 + movl $m1,ap + chmk (ap)+ # catch floating point exception + calls $3,_m_a_i_n + movl $m2,ap + movl r0,6(ap) + chmk (ap)+ + halt + + .align 1 +sig8: + .word 0x0000 + pushl 8(ap) + movl (sp)+,ap + pushl tab [ap] + jsb .trp + movl $m1,ap + chmk (ap)+ + ret + + .data +m1: + .word 48 + .long 2 + .long 8 + .long sig8 +m2: + .word 1 + .long 1 + .long 0 +.reghp: + .long _end +hol0: + .space 8 +.trppc: + .space 4 +.trpim: + .long 0 +tab: + .long 0 + .long EIOVFL + .long EIDIVZ + .long EFOVFL + .long EFDIVZ + .long EFUNFL + .long EILLINS + .long EARRAY + .long EFOVFL + .long EFDIVZ + .long EFUNFL diff --git a/mach/vax4/libbsd4_1a/ioctl.s b/mach/vax4/libbsd4_1a/ioctl.s new file mode 100644 index 000000000..e3e0d88d6 --- /dev/null +++ b/mach/vax4/libbsd4_1a/ioctl.s @@ -0,0 +1,11 @@ +.globl _ioctl +.set ioctl,54 + +.align 1 +_ioctl: + .word 0x0000 + chmk $ioctl + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/kill.s b/mach/vax4/libbsd4_1a/kill.s new file mode 100644 index 000000000..7a41a0fe8 --- /dev/null +++ b/mach/vax4/libbsd4_1a/kill.s @@ -0,0 +1,12 @@ +.globl _kill +.set kill,37 + +.align 1 +_kill: + .word 0x0000 + chmk $kill + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/link.s b/mach/vax4/libbsd4_1a/link.s new file mode 100644 index 000000000..2c6c35fb8 --- /dev/null +++ b/mach/vax4/libbsd4_1a/link.s @@ -0,0 +1,12 @@ +.globl _link +.set link,9 + +.align 1 +_link: + .word 0x0000 + chmk $link + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/lseek.s b/mach/vax4/libbsd4_1a/lseek.s new file mode 100644 index 000000000..2cae1d28a --- /dev/null +++ b/mach/vax4/libbsd4_1a/lseek.s @@ -0,0 +1,11 @@ +.globl _lseek +.set lseek,19 + +.align 1 +_lseek: + .word 0x0000 + chmk $lseek + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/mknod.s b/mach/vax4/libbsd4_1a/mknod.s new file mode 100644 index 000000000..5cbb729bd --- /dev/null +++ b/mach/vax4/libbsd4_1a/mknod.s @@ -0,0 +1,12 @@ +.globl _mknod +.set mknod,14 + +.align 1 +_mknod: + .word 0x0000 + chmk $mknod + bcc 1f + jmp errmod +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/mount.s b/mach/vax4/libbsd4_1a/mount.s new file mode 100644 index 000000000..c803979bd --- /dev/null +++ b/mach/vax4/libbsd4_1a/mount.s @@ -0,0 +1,12 @@ +.globl _mount +.set mount,21 + +.align 1 +_mount: + .word 0x0000 + chmk $mount + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/mpx.s b/mach/vax4/libbsd4_1a/mpx.s new file mode 100644 index 000000000..983d1f94e --- /dev/null +++ b/mach/vax4/libbsd4_1a/mpx.s @@ -0,0 +1,11 @@ +.set mpxcall,56 +.globl _mpxcall + +.align 1 +_mpxcall: + .word 0x0000 + chmk $mpxcall + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/nice.s b/mach/vax4/libbsd4_1a/nice.s new file mode 100644 index 000000000..73c3c2979 --- /dev/null +++ b/mach/vax4/libbsd4_1a/nice.s @@ -0,0 +1,12 @@ +.globl _nice +.set nice,34 + +.align 1 +_nice: + .word 0x0000 + chmk $nice + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/open.s b/mach/vax4/libbsd4_1a/open.s new file mode 100644 index 000000000..a7cdf30f2 --- /dev/null +++ b/mach/vax4/libbsd4_1a/open.s @@ -0,0 +1,11 @@ +.globl _open +.set open,5 + +.align 1 +_open: + .word 0x0000 + chmk $open + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/pause.s b/mach/vax4/libbsd4_1a/pause.s new file mode 100644 index 000000000..be98a1e27 --- /dev/null +++ b/mach/vax4/libbsd4_1a/pause.s @@ -0,0 +1,8 @@ +.globl _pause +.set pause,29 + +.align 1 +_pause: + .word 0x0000 + chmk $pause + ret diff --git a/mach/vax4/libbsd4_1a/pipe.s b/mach/vax4/libbsd4_1a/pipe.s new file mode 100644 index 000000000..bcbf1b96b --- /dev/null +++ b/mach/vax4/libbsd4_1a/pipe.s @@ -0,0 +1,15 @@ +.globl _pipe +.set pipe,42 + +.align 1 +_pipe: + .word 0x0000 + chmk $pipe + bcc 1f + jmp errmon +1: + movl 4(ap),r2 + movl r0,(r2)+ + movl r1,(r2) + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/profil.s b/mach/vax4/libbsd4_1a/profil.s new file mode 100644 index 000000000..c56b4d39c --- /dev/null +++ b/mach/vax4/libbsd4_1a/profil.s @@ -0,0 +1,8 @@ +.globl _profil +.set profil,44 + +.align 1 +_profil: + .word 0x0000 + chmk $profil + ret diff --git a/mach/vax4/libbsd4_1a/ptrace.s b/mach/vax4/libbsd4_1a/ptrace.s new file mode 100644 index 000000000..e60c12007 --- /dev/null +++ b/mach/vax4/libbsd4_1a/ptrace.s @@ -0,0 +1,12 @@ +.globl _ptrace +.set ptrace,26 + +.align 1 +_ptrace: + .word 0x0000 + clrl _errno + chmk $ptrace + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/read.s b/mach/vax4/libbsd4_1a/read.s new file mode 100644 index 000000000..c6ff6e38f --- /dev/null +++ b/mach/vax4/libbsd4_1a/read.s @@ -0,0 +1,11 @@ +.globl _read +.set read,3 + +.align 1 +_read: + .word 0x0000 + chmk $read + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/sbrk.s b/mach/vax4/libbsd4_1a/sbrk.s new file mode 100644 index 000000000..605a2aa35 --- /dev/null +++ b/mach/vax4/libbsd4_1a/sbrk.s @@ -0,0 +1,32 @@ +.set break,17 +.globl _sbrk, _brk +.globl _end + +.align 1 +_sbrk: + .word 0x0000 + addl3 brk,4(ap),-(sp) + bcc 1f + movl $0xFFFFFFFF,(sp) # will cause an error (I hope) +1: + movl brk,r3 + calls $1,_brk + tstl r0 + blss 1f + movl r3,r0 +1: + ret + +.align 1 +_brk: + .word 0x0000 + chmk $break + bcc 1f + jmp errmon +1: + movl 4(ap),brk + clrl r0 + ret + +.data +brk: .long _end diff --git a/mach/vax4/libbsd4_1a/setgid.s b/mach/vax4/libbsd4_1a/setgid.s new file mode 100644 index 000000000..86ced036e --- /dev/null +++ b/mach/vax4/libbsd4_1a/setgid.s @@ -0,0 +1,12 @@ +.globl _setgid +.set setgid,46 + +.align 1 +_setgid: + .word 0x0000 + chmk $setgid + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/setuid.s b/mach/vax4/libbsd4_1a/setuid.s new file mode 100644 index 000000000..8f3fe3880 --- /dev/null +++ b/mach/vax4/libbsd4_1a/setuid.s @@ -0,0 +1,12 @@ +.globl _setuid +.set setuid,23 + +.align 1 +_setuid: + .word 0x0000 + chmk $setuid + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/signal.s b/mach/vax4/libbsd4_1a/signal.s new file mode 100644 index 000000000..d416bffea --- /dev/null +++ b/mach/vax4/libbsd4_1a/signal.s @@ -0,0 +1,11 @@ +.globl _signal +.set signal,48 + +.align 1 +_signal: + .word 0x0000 + chmk $signal + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/stat.s b/mach/vax4/libbsd4_1a/stat.s new file mode 100644 index 000000000..e57a4ee35 --- /dev/null +++ b/mach/vax4/libbsd4_1a/stat.s @@ -0,0 +1,12 @@ +.globl _stat +.set stat,18 + +.align 1 +_stat: + .word 0x0000 + chmk $stat + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/stime.s b/mach/vax4/libbsd4_1a/stime.s new file mode 100644 index 000000000..c8bcc2c3c --- /dev/null +++ b/mach/vax4/libbsd4_1a/stime.s @@ -0,0 +1,13 @@ +.globl _stime +.set stime,25 + +.align 1 +_stime: + .word 0x0000 + movl *4(ap),4(ap) + chmk $stime + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/sync.s b/mach/vax4/libbsd4_1a/sync.s new file mode 100644 index 000000000..cdeaecd83 --- /dev/null +++ b/mach/vax4/libbsd4_1a/sync.s @@ -0,0 +1,8 @@ +.globl _sync +.set sync,36 + +.align 1 +_sync: + .word 0x0000 + chmk $sync + ret diff --git a/mach/vax4/libbsd4_1a/syscall.s b/mach/vax4/libbsd4_1a/syscall.s new file mode 100644 index 000000000..f0dbbc8ea --- /dev/null +++ b/mach/vax4/libbsd4_1a/syscall.s @@ -0,0 +1,12 @@ +.globl _syscall + +.align 1 +_syscall: + .word 0x0000 + movl 4(ap),r0 + subl3 $1,(ap)+,(ap) + chmk r0 + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/time.s b/mach/vax4/libbsd4_1a/time.s new file mode 100644 index 000000000..912190330 --- /dev/null +++ b/mach/vax4/libbsd4_1a/time.s @@ -0,0 +1,12 @@ +.globl _time +.set time,13 + +.align 1 +_time: + .word 0x0000 + chmk $time + movl 4(ap),r1 + beql 1f + movl r0,(r1) +1: + ret diff --git a/mach/vax4/libbsd4_1a/times.s b/mach/vax4/libbsd4_1a/times.s new file mode 100644 index 000000000..160117fb7 --- /dev/null +++ b/mach/vax4/libbsd4_1a/times.s @@ -0,0 +1,8 @@ +.globl _times +.set times,43 + +.align 1 +_times: + .word 0x0000 + chmk $times + ret diff --git a/mach/vax4/libbsd4_1a/umask.s b/mach/vax4/libbsd4_1a/umask.s new file mode 100644 index 000000000..8f76038d1 --- /dev/null +++ b/mach/vax4/libbsd4_1a/umask.s @@ -0,0 +1,11 @@ +.globl _umask +.set umask,60 + +.align 1 +_umask: + .word 0x0000 + chmk $umask + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/umount.s b/mach/vax4/libbsd4_1a/umount.s new file mode 100644 index 000000000..15667c0e3 --- /dev/null +++ b/mach/vax4/libbsd4_1a/umount.s @@ -0,0 +1,12 @@ +.globl _umount +.set umount,22 + +.align 1 +_umount: + .word 0x0000 + chmk $umount + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/unlink.s b/mach/vax4/libbsd4_1a/unlink.s new file mode 100644 index 000000000..6b59e4b5e --- /dev/null +++ b/mach/vax4/libbsd4_1a/unlink.s @@ -0,0 +1,12 @@ +.globl _unlink +.set unlink,10 + +.align 1 +_unlink: + .word 0x0000 + chmk $unlink + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/utime.s b/mach/vax4/libbsd4_1a/utime.s new file mode 100644 index 000000000..f8d9b4286 --- /dev/null +++ b/mach/vax4/libbsd4_1a/utime.s @@ -0,0 +1,11 @@ +.globl _utime +.set utime,30 + +.align 1 +_utime: + .word 0x0000 + chmk $utime + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/vadvise.s b/mach/vax4/libbsd4_1a/vadvise.s new file mode 100644 index 000000000..3175f993b --- /dev/null +++ b/mach/vax4/libbsd4_1a/vadvise.s @@ -0,0 +1,12 @@ +.set vadvise,72 +.globl _vadvise + +.align 1 +_vadvise: + .word 0x0000 + chmk $vadvise + bcc 1f + jmp errmon +1: + clrl r0 + ret diff --git a/mach/vax4/libbsd4_1a/vfork.s b/mach/vax4/libbsd4_1a/vfork.s new file mode 100644 index 000000000..5b59cdfef --- /dev/null +++ b/mach/vax4/libbsd4_1a/vfork.s @@ -0,0 +1,22 @@ +.globl _vfork +.set vfork,66 + +.align 1 +_vfork: + .word 0x0000 + movl 16(fp),r2 + movab 1f,16(fp) # dirty. Only one process can do return, + # so do it before forking + ret +1: + chmk $vfork + bcs 3f + tstl r1 + bneq 1f + clrl r0 +1: + jmp (r2) +3: + movl r0,_errno + mnegl $1,r0 + jmp (r2) diff --git a/mach/vax4/libbsd4_1a/vhangup.s b/mach/vax4/libbsd4_1a/vhangup.s new file mode 100644 index 000000000..8c674d4a0 --- /dev/null +++ b/mach/vax4/libbsd4_1a/vhangup.s @@ -0,0 +1,8 @@ +.globl _vhangup +.set vhangup,76 + +.align 1 +_vhangup: + .word 0x0000 + chmk $vhangup + ret diff --git a/mach/vax4/libbsd4_1a/vlimit.s b/mach/vax4/libbsd4_1a/vlimit.s new file mode 100644 index 000000000..8ce31948e --- /dev/null +++ b/mach/vax4/libbsd4_1a/vlimit.s @@ -0,0 +1,11 @@ +.globl _vlimit +.set vlimit,77 + +.align 1 +_vlimit: + .word 0x0000 + chmk $vlimit + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/vread.s b/mach/vax4/libbsd4_1a/vread.s new file mode 100644 index 000000000..622d3a881 --- /dev/null +++ b/mach/vax4/libbsd4_1a/vread.s @@ -0,0 +1,11 @@ +.globl _vread +.set vread,67 + +.align 1 +_vread: + .word 0x0000 + chmk $vread + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/vtimes.s b/mach/vax4/libbsd4_1a/vtimes.s new file mode 100644 index 000000000..3e4792e85 --- /dev/null +++ b/mach/vax4/libbsd4_1a/vtimes.s @@ -0,0 +1,8 @@ +.globl _vtimes +.set vtimes,107 + +.align 1 +_vtimes: + .word 0x0000 + chmk $vtimes + ret diff --git a/mach/vax4/libbsd4_1a/vwait.s b/mach/vax4/libbsd4_1a/vwait.s new file mode 100644 index 000000000..4863d88b2 --- /dev/null +++ b/mach/vax4/libbsd4_1a/vwait.s @@ -0,0 +1,15 @@ +.globl _vwait +.set vwait,71 + +.align 1 +_vwait: + .word 0x0000 + chmk $vwait + bcc 1f + jmp errmon +1: + tstl 4(ap) + beql 1f + movl r1,*4(ap) +1: + ret diff --git a/mach/vax4/libbsd4_1a/vwrite.s b/mach/vax4/libbsd4_1a/vwrite.s new file mode 100644 index 000000000..25b7997e4 --- /dev/null +++ b/mach/vax4/libbsd4_1a/vwrite.s @@ -0,0 +1,11 @@ +.globl _vwrite +.set vwrite,68 + +.align 1 +_vwrite: + .word 0x0000 + chmk $vwrite + bcc 1f + jmp errmon +1: + ret diff --git a/mach/vax4/libbsd4_1a/wait.s b/mach/vax4/libbsd4_1a/wait.s new file mode 100644 index 000000000..9962b0d45 --- /dev/null +++ b/mach/vax4/libbsd4_1a/wait.s @@ -0,0 +1,15 @@ +.set wait,7 +.globl _wait + +.align 1 +_wait: + .word 0x0000 + chmk $wait + bcc 1f + jmp errmon +1: + tstl 4(ap) + beql 1f + movl r1,*4(ap) +1: + ret diff --git a/mach/vax4/libbsd4_1a/write.s b/mach/vax4/libbsd4_1a/write.s new file mode 100644 index 000000000..3c69d9585 --- /dev/null +++ b/mach/vax4/libbsd4_1a/write.s @@ -0,0 +1,11 @@ +.globl _write +.set write,4 + +.align 1 +_write: + .word 0x0000 + chmk $write + bcc 1f + jmp errmon +1: + ret