Initial revision
authorceriel <none@none>
Thu, 29 Jan 1987 22:36:35 +0000 (22:36 +0000)
committerceriel <none@none>
Thu, 29 Jan 1987 22:36:35 +0000 (22:36 +0000)
59 files changed:
mach/m68020/libsys/README [new file with mode: 0644]
mach/m68020/libsys/_exit.s [new file with mode: 0644]
mach/m68020/libsys/access.s [new file with mode: 0644]
mach/m68020/libsys/acct.s [new file with mode: 0644]
mach/m68020/libsys/alarm.s [new file with mode: 0644]
mach/m68020/libsys/brk.s [new file with mode: 0644]
mach/m68020/libsys/call.s [new file with mode: 0644]
mach/m68020/libsys/chdir.s [new file with mode: 0644]
mach/m68020/libsys/chmod.s [new file with mode: 0644]
mach/m68020/libsys/chown.s [new file with mode: 0644]
mach/m68020/libsys/chroot.s [new file with mode: 0644]
mach/m68020/libsys/cleanup.s [new file with mode: 0644]
mach/m68020/libsys/close.s [new file with mode: 0644]
mach/m68020/libsys/compmodule [new file with mode: 0755]
mach/m68020/libsys/creat.s [new file with mode: 0644]
mach/m68020/libsys/dup.s [new file with mode: 0644]
mach/m68020/libsys/dup2.s [new file with mode: 0644]
mach/m68020/libsys/errno.s [new file with mode: 0644]
mach/m68020/libsys/execl.s [new file with mode: 0644]
mach/m68020/libsys/execve.s [new file with mode: 0644]
mach/m68020/libsys/exit.s [new file with mode: 0644]
mach/m68020/libsys/fcntl.s [new file with mode: 0644]
mach/m68020/libsys/fork.s [new file with mode: 0644]
mach/m68020/libsys/fstat.s [new file with mode: 0644]
mach/m68020/libsys/ftime.s [new file with mode: 0644]
mach/m68020/libsys/getegid.s [new file with mode: 0644]
mach/m68020/libsys/getgid.s [new file with mode: 0644]
mach/m68020/libsys/getpid.s [new file with mode: 0644]
mach/m68020/libsys/getuid.s [new file with mode: 0644]
mach/m68020/libsys/gtty.s [new file with mode: 0644]
mach/m68020/libsys/ioctl.s [new file with mode: 0644]
mach/m68020/libsys/kill.s [new file with mode: 0644]
mach/m68020/libsys/link.s [new file with mode: 0644]
mach/m68020/libsys/lock.s [new file with mode: 0644]
mach/m68020/libsys/lseek.s [new file with mode: 0644]
mach/m68020/libsys/mknod.s [new file with mode: 0644]
mach/m68020/libsys/mount.s [new file with mode: 0644]
mach/m68020/libsys/nice.s [new file with mode: 0644]
mach/m68020/libsys/open.s [new file with mode: 0644]
mach/m68020/libsys/pause.s [new file with mode: 0644]
mach/m68020/libsys/pipe.s [new file with mode: 0644]
mach/m68020/libsys/profil.s [new file with mode: 0644]
mach/m68020/libsys/ptrace.s [new file with mode: 0644]
mach/m68020/libsys/read.s [new file with mode: 0644]
mach/m68020/libsys/setgid.s [new file with mode: 0644]
mach/m68020/libsys/setuid.s [new file with mode: 0644]
mach/m68020/libsys/signal.s [new file with mode: 0644]
mach/m68020/libsys/stat.s [new file with mode: 0644]
mach/m68020/libsys/stime.s [new file with mode: 0644]
mach/m68020/libsys/stty.s [new file with mode: 0644]
mach/m68020/libsys/sync.s [new file with mode: 0644]
mach/m68020/libsys/time.s [new file with mode: 0644]
mach/m68020/libsys/times.s [new file with mode: 0644]
mach/m68020/libsys/umask.s [new file with mode: 0644]
mach/m68020/libsys/umount.s [new file with mode: 0644]
mach/m68020/libsys/unlink.s [new file with mode: 0644]
mach/m68020/libsys/utime.s [new file with mode: 0644]
mach/m68020/libsys/wait.s [new file with mode: 0644]
mach/m68020/libsys/write.s [new file with mode: 0644]

diff --git a/mach/m68020/libsys/README b/mach/m68020/libsys/README
new file mode 100644 (file)
index 0000000..df9f3de
--- /dev/null
@@ -0,0 +1,66 @@
+       ! Two system calls (gtty and stty) in the m68000 tail_mon library
+       ! were not really system calls but they used _ioctl. The m68020 machine
+       ! the table was tested on used real system calls, and we'll use
+       ! them here.
+       ! There were also three calls (ftime, lock and dup2) that were in the
+       ! m68000 library, but were not included in the list of system calls
+       ! for the m68020 that was given to me. We'll include them anyway.
+       ! The original gtty and stty files are included here.
+       ! Note however that the 68000 machine (the Mantra) needs the parameters
+       ! to system calls in registers, while the m68020 machine this table was
+       ! tested on wanted the parameters on the stack
+       !
+       ! Also read the comments in the signal.s file!
+! -------------------  dup2.s
+! .define _dup2
+! .extern _dup2
+! .sect .text
+! .sect .rom
+! .sect .data
+! .sect .bss
+! .sect .text
+! _dup2:               move.w #0x29,d0
+!              move.l (4,sp),a0
+!              move.l (8,sp),d1
+!              add.l #0x40,a0
+!              jmp (call)
+!
+!
+! ! -------------------  gtty.s
+! .define _gtty
+! .extern _gtty
+! .sect .text
+! .sect .rom
+! .sect .data
+! .sect .bss
+! .sect .text
+! _gtty:
+! tst.b (-40,sp)
+! link a6,#-0
+! move.l (12,a6),-(sp)
+! move.l #29704,-(sp)
+! move.l (8,a6),-(sp)
+! jsr (_ioctl)
+! add.l #12,sp
+! unlk a6
+! rts
+!
+!
+! ! -------------------  stty.s
+! .define _stty
+! .extern _stty
+! .sect .text
+! .sect .rom
+! .sect .data
+! .sect .bss
+! .sect .text
+! _stty:
+! tst.b (-40,sp)
+! link a6,#-0
+! move.l (12,a6),-(sp)
+! move.l #29705,-(sp)
+! move.l (8,a6),-(sp)
+! jsr (_ioctl)
+! add.l #12,sp
+! unlk a6
+! rts
diff --git a/mach/m68020/libsys/_exit.s b/mach/m68020/libsys/_exit.s
new file mode 100644 (file)
index 0000000..520d281
--- /dev/null
@@ -0,0 +1,10 @@
+.define __exit
+.extern __exit
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+__exit:                move.l #0x1,d0
+               trap #0
+               stop #0                 ! was there in 68020 routine
diff --git a/mach/m68020/libsys/access.s b/mach/m68020/libsys/access.s
new file mode 100644 (file)
index 0000000..02274d7
--- /dev/null
@@ -0,0 +1,9 @@
+.define _access
+.extern _access
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_access:       move.l #0x21,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/acct.s b/mach/m68020/libsys/acct.s
new file mode 100644 (file)
index 0000000..71bb08d
--- /dev/null
@@ -0,0 +1,9 @@
+.define _acct
+.extern _acct
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_acct:         move.l #0x33,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/alarm.s b/mach/m68020/libsys/alarm.s
new file mode 100644 (file)
index 0000000..18ceb91
--- /dev/null
@@ -0,0 +1,10 @@
+.define _alarm
+.extern _alarm
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_alarm:                move.l #0x1B,d0
+               trap #0
+               rts
diff --git a/mach/m68020/libsys/brk.s b/mach/m68020/libsys/brk.s
new file mode 100644 (file)
index 0000000..c52c17e
--- /dev/null
@@ -0,0 +1,25 @@
+.define _brk
+.define _sbrk
+.extern _brk
+.extern _sbrk
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_sbrk:         move.l (.reghp),d0
+               add.l  d0,(4,sp)
+               move.l #0x11,d0
+               trap #0
+               bcs lcerror
+               move.l (.reghp),d0
+               move.l d0,a0
+               move.l (4,sp),(.reghp)
+               rts
+lcerror:       jmp (cerror)
+_brk:          move.l #0x11,d0
+               trap #0
+               bcs lcerror
+               move.l (4,sp),(.reghp)
+               clr.l d0
+               rts
diff --git a/mach/m68020/libsys/call.s b/mach/m68020/libsys/call.s
new file mode 100644 (file)
index 0000000..37ddf9d
--- /dev/null
@@ -0,0 +1,28 @@
+.define call
+.define callc
+.define calle
+.define cerror
+.extern call
+.extern callc
+.extern calle
+.extern cerror
+.extern _errno
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+call:          trap #0
+               bcs cerror
+               rts
+callc:
+               trap #0
+               bcs cerror
+               clr.l d0
+               rts
+calle:
+               trap #0
+cerror:
+               move.l d0,(_errno)
+               move.l #-1,d0
+               rts
diff --git a/mach/m68020/libsys/chdir.s b/mach/m68020/libsys/chdir.s
new file mode 100644 (file)
index 0000000..b76384a
--- /dev/null
@@ -0,0 +1,9 @@
+.define _chdir
+.extern _chdir
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_chdir:                move.l #0xC,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/chmod.s b/mach/m68020/libsys/chmod.s
new file mode 100644 (file)
index 0000000..636671a
--- /dev/null
@@ -0,0 +1,9 @@
+.define _chmod
+.extern _chmod
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_chmod:                move.l #0xF,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/chown.s b/mach/m68020/libsys/chown.s
new file mode 100644 (file)
index 0000000..ada39b8
--- /dev/null
@@ -0,0 +1,9 @@
+.define _chown
+.extern _chown
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_chown:                move.l #0x10,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/chroot.s b/mach/m68020/libsys/chroot.s
new file mode 100644 (file)
index 0000000..85de806
--- /dev/null
@@ -0,0 +1,9 @@
+.define _chroot
+.extern _chroot
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_chroot:       move.l #0x3D,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/cleanup.s b/mach/m68020/libsys/cleanup.s
new file mode 100644 (file)
index 0000000..ecb859c
--- /dev/null
@@ -0,0 +1,12 @@
+.define __cleanup
+.extern __cleanup
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+__cleanup:
+tst.b (-40,sp)
+link   a6,#-0
+unlk a6
+rts
diff --git a/mach/m68020/libsys/close.s b/mach/m68020/libsys/close.s
new file mode 100644 (file)
index 0000000..45c0f05
--- /dev/null
@@ -0,0 +1,9 @@
+.define _close
+.extern _close
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_close:                move.l #0x6,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/compmodule b/mach/m68020/libsys/compmodule
new file mode 100755 (executable)
index 0000000..e42fb93
--- /dev/null
@@ -0,0 +1,4 @@
+if ${MACH?} -c $1 1>&2
+then echo `basename $1 $2`.o
+else exit 1
+fi
diff --git a/mach/m68020/libsys/creat.s b/mach/m68020/libsys/creat.s
new file mode 100644 (file)
index 0000000..30aabd5
--- /dev/null
@@ -0,0 +1,9 @@
+.define _creat
+.extern _creat
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_creat:                move.l #0x8,d0
+               jmp (call)
diff --git a/mach/m68020/libsys/dup.s b/mach/m68020/libsys/dup.s
new file mode 100644 (file)
index 0000000..e2f29f2
--- /dev/null
@@ -0,0 +1,9 @@
+.define _dup
+.extern _dup
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_dup:          move.l #0x29,d0
+               jmp (call)
diff --git a/mach/m68020/libsys/dup2.s b/mach/m68020/libsys/dup2.s
new file mode 100644 (file)
index 0000000..dcdf0e9
--- /dev/null
@@ -0,0 +1,10 @@
+.define _dup2
+.extern _dup2
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_dup2:         move.l #0x29,d0
+               add.l #0x40,(4,sp)      ! ???
+               jmp (call)
diff --git a/mach/m68020/libsys/errno.s b/mach/m68020/libsys/errno.s
new file mode 100644 (file)
index 0000000..adc0830
--- /dev/null
@@ -0,0 +1,9 @@
+.define _errno
+.extern _errno
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .bss
+_errno:                .space 4
+.sect .text
diff --git a/mach/m68020/libsys/execl.s b/mach/m68020/libsys/execl.s
new file mode 100644 (file)
index 0000000..147716a
--- /dev/null
@@ -0,0 +1,16 @@
+.define _execl
+.extern _execl
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_execl:                link a6,#0
+               tst.b (-132,sp)
+               move.l (_environ),-(sp)
+               pea (12,sp)
+               move.l (8,a6),-(sp)
+               jsr (_execve)
+               add.l #0xC,sp
+               unlk a6
+               rts
diff --git a/mach/m68020/libsys/execve.s b/mach/m68020/libsys/execve.s
new file mode 100644 (file)
index 0000000..a26107d
--- /dev/null
@@ -0,0 +1,9 @@
+.define _execve
+.extern _execve
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_execve:       move.l #0x3B,d0
+               jmp (calle)
diff --git a/mach/m68020/libsys/exit.s b/mach/m68020/libsys/exit.s
new file mode 100644 (file)
index 0000000..77d95a5
--- /dev/null
@@ -0,0 +1,16 @@
+.define _exit
+.extern _exit
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_exit:
+tst.b (-40,sp)
+link   a6,#-0
+jsr (__cleanup)
+move.l (8,a6),-(sp)
+jsr (__exit)
+add.l #4,sp
+unlk a6
+rts
diff --git a/mach/m68020/libsys/fcntl.s b/mach/m68020/libsys/fcntl.s
new file mode 100644 (file)
index 0000000..385bcdb
--- /dev/null
@@ -0,0 +1,9 @@
+.define _fcntl
+.extern _fcntl
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_fcntl:                move.l #0x3E,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/fork.s b/mach/m68020/libsys/fork.s
new file mode 100644 (file)
index 0000000..a087239
--- /dev/null
@@ -0,0 +1,17 @@
+.define _fork
+.extern _fork
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_fork:         move.l #0x2,d0
+               trap #0
+               bcc 1f          ! 68020 way to do it
+               jmp (cerror)
+1:
+               tst.b d1
+               beq 2f
+               clr.l d0
+2:
+               rts
diff --git a/mach/m68020/libsys/fstat.s b/mach/m68020/libsys/fstat.s
new file mode 100644 (file)
index 0000000..a9c091a
--- /dev/null
@@ -0,0 +1,9 @@
+.define _fstat
+.extern _fstat
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_fstat:                move.l  #0x1C,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/ftime.s b/mach/m68020/libsys/ftime.s
new file mode 100644 (file)
index 0000000..4b3f05c
--- /dev/null
@@ -0,0 +1,9 @@
+.define _ftime
+.extern _ftime
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_ftime:                move.l #0x23,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/getegid.s b/mach/m68020/libsys/getegid.s
new file mode 100644 (file)
index 0000000..470f8b3
--- /dev/null
@@ -0,0 +1,11 @@
+.define _getegid
+.extern _getegid
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_getegid:      move.l #0x2F,d0
+               trap #0
+               move.l d1,d0
+               rts
diff --git a/mach/m68020/libsys/getgid.s b/mach/m68020/libsys/getgid.s
new file mode 100644 (file)
index 0000000..ff4dd2c
--- /dev/null
@@ -0,0 +1,10 @@
+.define _getgid
+.extern _getgid
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_getgid:       move.l #0x2F,d0
+               trap #0
+               rts
diff --git a/mach/m68020/libsys/getpid.s b/mach/m68020/libsys/getpid.s
new file mode 100644 (file)
index 0000000..3d128e4
--- /dev/null
@@ -0,0 +1,10 @@
+.define _getpid
+.extern _getpid
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_getpid:       move.l #0x14,d0
+               trap #0
+               rts
diff --git a/mach/m68020/libsys/getuid.s b/mach/m68020/libsys/getuid.s
new file mode 100644 (file)
index 0000000..7c884c6
--- /dev/null
@@ -0,0 +1,10 @@
+.define _getuid
+.extern _getuid
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_getuid:       move.l #0x18,d0
+               trap #0
+               rts
diff --git a/mach/m68020/libsys/gtty.s b/mach/m68020/libsys/gtty.s
new file mode 100644 (file)
index 0000000..7224917
--- /dev/null
@@ -0,0 +1,9 @@
+.define _gtty
+.extern _gtty
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_gtty:         move.l #0x20, d0
+               jmp (call)
diff --git a/mach/m68020/libsys/ioctl.s b/mach/m68020/libsys/ioctl.s
new file mode 100644 (file)
index 0000000..9f5d4ec
--- /dev/null
@@ -0,0 +1,9 @@
+.define _ioctl
+.extern _ioctl
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_ioctl:                move.l #0x36,d0
+               jmp (call)
diff --git a/mach/m68020/libsys/kill.s b/mach/m68020/libsys/kill.s
new file mode 100644 (file)
index 0000000..30cc6aa
--- /dev/null
@@ -0,0 +1,9 @@
+.define _kill
+.extern _kill
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_kill:         move.l #0x25,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/link.s b/mach/m68020/libsys/link.s
new file mode 100644 (file)
index 0000000..fdc468d
--- /dev/null
@@ -0,0 +1,9 @@
+.define _link
+.extern _link
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_link:         move.l #0x9,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/lock.s b/mach/m68020/libsys/lock.s
new file mode 100644 (file)
index 0000000..6720653
--- /dev/null
@@ -0,0 +1,9 @@
+.define _lock
+.extern _lock
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_lock:         move.l #0x35,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/lseek.s b/mach/m68020/libsys/lseek.s
new file mode 100644 (file)
index 0000000..dfb7a3c
--- /dev/null
@@ -0,0 +1,9 @@
+.define _lseek
+.extern _lseek
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_lseek:                move.l #0x13,d0
+               jmp (call)
diff --git a/mach/m68020/libsys/mknod.s b/mach/m68020/libsys/mknod.s
new file mode 100644 (file)
index 0000000..9364c9f
--- /dev/null
@@ -0,0 +1,9 @@
+.define _mknod
+.extern _mknod
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_mknod:                move.l #0xE,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/mount.s b/mach/m68020/libsys/mount.s
new file mode 100644 (file)
index 0000000..bf3083c
--- /dev/null
@@ -0,0 +1,9 @@
+.define _mount
+.extern _mount
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_mount:                move.l #0x15,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/nice.s b/mach/m68020/libsys/nice.s
new file mode 100644 (file)
index 0000000..3c24e59
--- /dev/null
@@ -0,0 +1,9 @@
+.define _nice
+.extern _nice
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_nice:         move.l #0x22,d0
+               jmp (call)
diff --git a/mach/m68020/libsys/open.s b/mach/m68020/libsys/open.s
new file mode 100644 (file)
index 0000000..b9de1c4
--- /dev/null
@@ -0,0 +1,9 @@
+.define _open
+.extern _open
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_open:         move.l #0x5,d0
+               jmp (call)
diff --git a/mach/m68020/libsys/pause.s b/mach/m68020/libsys/pause.s
new file mode 100644 (file)
index 0000000..30b21a1
--- /dev/null
@@ -0,0 +1,9 @@
+.define _pause
+.extern _pause
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_pause:                move.l #0x1D,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/pipe.s b/mach/m68020/libsys/pipe.s
new file mode 100644 (file)
index 0000000..b4e4217
--- /dev/null
@@ -0,0 +1,18 @@
+.define _pipe
+.extern _pipe
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_pipe:         
+               move.l #0x2A,d0
+               trap #0
+               bcc 1f
+               jmp (cerror)
+1:
+               move.l (4,sp),a0
+               move.l d0,(a0)+
+               move.l d1,(a0)
+               clr.l d0
+               rts
diff --git a/mach/m68020/libsys/profil.s b/mach/m68020/libsys/profil.s
new file mode 100644 (file)
index 0000000..10703e8
--- /dev/null
@@ -0,0 +1,10 @@
+.define _profil
+.extern _profil
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_profil:       move.l #0x2C,d0
+               trap #0
+               rts
diff --git a/mach/m68020/libsys/ptrace.s b/mach/m68020/libsys/ptrace.s
new file mode 100644 (file)
index 0000000..7ceba3f
--- /dev/null
@@ -0,0 +1,11 @@
+.define _ptrace
+.extern _ptrace
+.extern _errno
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_ptrace:       move.l #0x1A,d0
+               clr.l  (_errno)
+               jmp (call)
diff --git a/mach/m68020/libsys/read.s b/mach/m68020/libsys/read.s
new file mode 100644 (file)
index 0000000..1602d80
--- /dev/null
@@ -0,0 +1,9 @@
+.define _read
+.extern _read
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_read:         move.l #0x3,d0
+               jmp (call)
diff --git a/mach/m68020/libsys/setgid.s b/mach/m68020/libsys/setgid.s
new file mode 100644 (file)
index 0000000..bba1a29
--- /dev/null
@@ -0,0 +1,9 @@
+.define _setgid
+.extern _setgid
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_setgid:       move.l #0x2E,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/setuid.s b/mach/m68020/libsys/setuid.s
new file mode 100644 (file)
index 0000000..5fda754
--- /dev/null
@@ -0,0 +1,9 @@
+.define _setuid
+.extern _setuid
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_setuid:       move.l #0x17,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/signal.s b/mach/m68020/libsys/signal.s
new file mode 100644 (file)
index 0000000..1d22e79
--- /dev/null
@@ -0,0 +1,22 @@
+.define _signal
+.extern _signal
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_signal:
+       move.l  #0x30,d0
+       jmp     (callc)
+! NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
+!
+! Just as in the m68000 tail_mon library the acual signal system call
+! is not called directly by the user, but an `interface'. This `interface'
+! does the actual system call. On the m68020 machine the table was tested on
+! this `interface' did things that I did not understand, e.g. it called
+! a sytem call with number 38, called `_sysm68k'. I couldn't get the signal
+! system call get to work properly on that machine, but as it is clear
+! that this is in no way to blame to my back end table.
+! The system call as presented here does not reset the catch routine: a
+! signal that is caught by a user function will be caught every time, not
+! just once. I couldn't change this.
diff --git a/mach/m68020/libsys/stat.s b/mach/m68020/libsys/stat.s
new file mode 100644 (file)
index 0000000..73dd949
--- /dev/null
@@ -0,0 +1,9 @@
+.define _stat
+.extern _stat
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_stat:         move.l #0x12,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/stime.s b/mach/m68020/libsys/stime.s
new file mode 100644 (file)
index 0000000..7d0823c
--- /dev/null
@@ -0,0 +1,10 @@
+.define _stime
+.extern _stime
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_stime:                move.l #0x19,d0
+               move.l ([4,sp]),(4,sp)
+               jmp (callc)
diff --git a/mach/m68020/libsys/stty.s b/mach/m68020/libsys/stty.s
new file mode 100644 (file)
index 0000000..469f9c5
--- /dev/null
@@ -0,0 +1,9 @@
+.define _stty
+.extern _stty
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_stty:         move.l #0x21, d0
+               jmp (call)
diff --git a/mach/m68020/libsys/sync.s b/mach/m68020/libsys/sync.s
new file mode 100644 (file)
index 0000000..3ee77a2
--- /dev/null
@@ -0,0 +1,10 @@
+.define _sync
+.extern _sync
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_sync:         move.l #0x24,d0
+               trap #0
+               rts
diff --git a/mach/m68020/libsys/time.s b/mach/m68020/libsys/time.s
new file mode 100644 (file)
index 0000000..ad82771
--- /dev/null
@@ -0,0 +1,14 @@
+.define _time
+.extern _time
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_time:         move.l #0xD,d0
+               trap #0
+               tst.l (4,sp)
+               beq 1f
+               move.l d0,([4,sp])
+1:
+               rts
diff --git a/mach/m68020/libsys/times.s b/mach/m68020/libsys/times.s
new file mode 100644 (file)
index 0000000..e06693f
--- /dev/null
@@ -0,0 +1,10 @@
+.define _times
+.extern _times
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_times:                move.l #0x2B,d0
+               trap #0
+               jmp (call)
diff --git a/mach/m68020/libsys/umask.s b/mach/m68020/libsys/umask.s
new file mode 100644 (file)
index 0000000..b16bf5f
--- /dev/null
@@ -0,0 +1,9 @@
+.define _umask
+.extern _umask
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_umask:                move.l #0x3C,d0
+               jmp (call)
diff --git a/mach/m68020/libsys/umount.s b/mach/m68020/libsys/umount.s
new file mode 100644 (file)
index 0000000..3940f13
--- /dev/null
@@ -0,0 +1,9 @@
+.define _umount
+.extern _umount
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_umount:       move.l #0x16,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/unlink.s b/mach/m68020/libsys/unlink.s
new file mode 100644 (file)
index 0000000..a31a191
--- /dev/null
@@ -0,0 +1,9 @@
+.define _unlink
+.extern _unlink
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_unlink:       move.l #0xA,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/utime.s b/mach/m68020/libsys/utime.s
new file mode 100644 (file)
index 0000000..98070db
--- /dev/null
@@ -0,0 +1,9 @@
+.define _utime
+.extern _utime
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_utime:                move.l #0x1E,d0
+               jmp (callc)
diff --git a/mach/m68020/libsys/wait.s b/mach/m68020/libsys/wait.s
new file mode 100644 (file)
index 0000000..4ffafbd
--- /dev/null
@@ -0,0 +1,15 @@
+.define _wait
+.extern _wait
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_wait:         move.l  #0x7,d0
+               trap #0
+               bcs cerror
+               tst.l (4,sp)
+               beq 1f
+               move.l d1,([4,sp])
+1:
+               rts
diff --git a/mach/m68020/libsys/write.s b/mach/m68020/libsys/write.s
new file mode 100644 (file)
index 0000000..cf1f3c3
--- /dev/null
@@ -0,0 +1,9 @@
+.define _write
+.extern _write
+.sect .text
+.sect .rom
+.sect .data
+.sect .bss
+.sect .text
+_write:                move.l #0x4,d0
+               jmp (call)