From d0e857ddb2dd2d0b1cde3b5098c5b4b874ecbb38 Mon Sep 17 00:00:00 2001 From: bal Date: Thu, 18 Apr 1985 15:14:37 +0000 Subject: [PATCH] Initial revision --- mach/m68k2/libsys/acct.s | 6 ++++++ mach/m68k2/libsys/chown.s | 9 +++++++++ mach/m68k2/libsys/dup.s | 6 ++++++ mach/m68k2/libsys/dup2.s | 9 +++++++++ mach/m68k2/libsys/ftime.s | 6 ++++++ mach/m68k2/libsys/lock.s | 6 ++++++ mach/m68k2/libsys/pipe.s | 13 +++++++++++++ mach/m68k2/libsys/profil.s | 12 ++++++++++++ mach/m68k2/libsys/umask.s | 6 ++++++ mach/m68k2/libsys/utime.s | 7 +++++++ 10 files changed, 80 insertions(+) create mode 100644 mach/m68k2/libsys/acct.s create mode 100644 mach/m68k2/libsys/chown.s create mode 100644 mach/m68k2/libsys/dup.s create mode 100644 mach/m68k2/libsys/dup2.s create mode 100644 mach/m68k2/libsys/ftime.s create mode 100644 mach/m68k2/libsys/lock.s create mode 100644 mach/m68k2/libsys/pipe.s create mode 100644 mach/m68k2/libsys/profil.s create mode 100644 mach/m68k2/libsys/umask.s create mode 100644 mach/m68k2/libsys/utime.s diff --git a/mach/m68k2/libsys/acct.s b/mach/m68k2/libsys/acct.s new file mode 100644 index 000000000..b4ba8b611 --- /dev/null +++ b/mach/m68k2/libsys/acct.s @@ -0,0 +1,6 @@ +.define _acct +.extern _acct +.text +_acct: move.w #0x33,d0 + move.l 4(sp),a0 + jmp callc diff --git a/mach/m68k2/libsys/chown.s b/mach/m68k2/libsys/chown.s new file mode 100644 index 000000000..3e33b1705 --- /dev/null +++ b/mach/m68k2/libsys/chown.s @@ -0,0 +1,9 @@ +.define _chown +.extern _chown +.text +_chown: move.w #0x10,d0 + move.l 4(sp),a0 + move.w 8(sp),d1 + ext.l d1 + move.w 10(sp),a1 + jmp callc diff --git a/mach/m68k2/libsys/dup.s b/mach/m68k2/libsys/dup.s new file mode 100644 index 000000000..75be7dde3 --- /dev/null +++ b/mach/m68k2/libsys/dup.s @@ -0,0 +1,6 @@ +.define _dup +.extern _dup +.text +_dup: move.w #0x29,d0 + move.w 4(sp),a0 + jmp call diff --git a/mach/m68k2/libsys/dup2.s b/mach/m68k2/libsys/dup2.s new file mode 100644 index 000000000..0227703cf --- /dev/null +++ b/mach/m68k2/libsys/dup2.s @@ -0,0 +1,9 @@ +.define _dup2 +.extern _dup2 +.text +_dup2: move.w #0x29,d0 + move.w 4(sp),a0 + move.w 6(sp),d1 + ext.l d1 + add.l #0x40,a0 + jmp call diff --git a/mach/m68k2/libsys/ftime.s b/mach/m68k2/libsys/ftime.s new file mode 100644 index 000000000..432ed3f0f --- /dev/null +++ b/mach/m68k2/libsys/ftime.s @@ -0,0 +1,6 @@ +.define _ftime +.extern _ftime +.text +_ftime: move.w #0x23,d0 + move.l 4(sp),a0 + jmp callc diff --git a/mach/m68k2/libsys/lock.s b/mach/m68k2/libsys/lock.s new file mode 100644 index 000000000..9ed995742 --- /dev/null +++ b/mach/m68k2/libsys/lock.s @@ -0,0 +1,6 @@ +.define _lock +.extern _lock +.text +_lock: move.w #0x35,d0 + move.w 4(sp),a0 + jmp callc diff --git a/mach/m68k2/libsys/pipe.s b/mach/m68k2/libsys/pipe.s new file mode 100644 index 000000000..017adecfc --- /dev/null +++ b/mach/m68k2/libsys/pipe.s @@ -0,0 +1,13 @@ +.define _pipe +.extern _pipe +_pipe: + move.w #0x2A,d0 + trap #0 + bcc 1f + jmp cerror +1: + move.l 4(sp),a0 + move.w d0,(a0)+ + move.w d1,(a0) + clr.l d0 + rts diff --git a/mach/m68k2/libsys/profil.s b/mach/m68k2/libsys/profil.s new file mode 100644 index 000000000..c38e4981c --- /dev/null +++ b/mach/m68k2/libsys/profil.s @@ -0,0 +1,12 @@ +.define _profil +.extern _profil +.text +_profil: move.w #0x2C,d0 + move.l 4(sp),a0 + move.w 8(sp),d1 + ext.l d1 + move.w 10(sp),a1 + move.w 12(sp),d2 + ext.l d2 + trap #0 + rts diff --git a/mach/m68k2/libsys/umask.s b/mach/m68k2/libsys/umask.s new file mode 100644 index 000000000..8eae00cd2 --- /dev/null +++ b/mach/m68k2/libsys/umask.s @@ -0,0 +1,6 @@ +.define _umask +.extern _umask +.text +_umask: move.w #0x3C,d0 + move.w 4(sp),a0 + jmp call diff --git a/mach/m68k2/libsys/utime.s b/mach/m68k2/libsys/utime.s new file mode 100644 index 000000000..0e0b6dd9a --- /dev/null +++ b/mach/m68k2/libsys/utime.s @@ -0,0 +1,7 @@ +.define _utime +.extern _utime +.text +_utime: move.w #0x1E,d0 + move.l 4(sp),a0 + move.l 8(sp),d1 + jmp callc -- 2.34.1