From 0370ea6d61b18d0b0920d1924c3f43f7048fa3b2 Mon Sep 17 00:00:00 2001 From: keie Date: Tue, 4 Jun 1985 11:18:09 +0000 Subject: [PATCH] Adapted to use of the new assembler & linker --- mach/m68k2/libsys/Makefile | 20 ++++++++++---- mach/m68k2/libsys/_exit.s | 6 ++++- mach/m68k2/libsys/access.s | 6 ++++- mach/m68k2/libsys/alarm.s | 6 ++++- mach/m68k2/libsys/brk.s | 12 ++++++--- mach/m68k2/libsys/call.s | 10 ++++--- mach/m68k2/libsys/chdir.s | 6 ++++- mach/m68k2/libsys/chmod.s | 6 ++++- mach/m68k2/libsys/chroot.s | 6 ++++- mach/m68k2/libsys/cleanup.s | 6 ++++- mach/m68k2/libsys/close.s | 6 ++++- mach/m68k2/libsys/creat.s | 6 ++++- mach/m68k2/libsys/execl.s | 4 +++ mach/m68k2/libsys/execve.s | 6 ++++- mach/m68k2/libsys/exit.s | 6 ++++- mach/m68k2/libsys/fork.s | 6 ++++- mach/m68k2/libsys/fstat.s | 4 +++ mach/m68k2/libsys/getegid.s | 6 ++++- mach/m68k2/libsys/getgid.s | 6 ++++- mach/m68k2/libsys/getpid.s | 6 ++++- mach/m68k2/libsys/getuid.s | 6 ++++- mach/m68k2/libsys/gtty.s | 6 ++++- mach/m68k2/libsys/ioctl.s | 6 ++++- mach/m68k2/libsys/kill.s | 6 ++++- mach/m68k2/libsys/link.s | 6 ++++- mach/m68k2/libsys/lseek.s | 6 ++++- mach/m68k2/libsys/mknod.s | 6 ++++- mach/m68k2/libsys/mount.s | 8 ++++-- mach/m68k2/libsys/nice.s | 6 ++++- mach/m68k2/libsys/open.s | 6 ++++- mach/m68k2/libsys/pause.s | 6 ++++- mach/m68k2/libsys/read.s | 6 ++++- mach/m68k2/libsys/setgid.s | 6 ++++- mach/m68k2/libsys/setuid.s | 6 ++++- mach/m68k2/libsys/signal.s | 53 +++++++------------------------------ mach/m68k2/libsys/stat.s | 6 ++++- mach/m68k2/libsys/stime.s | 6 ++++- mach/m68k2/libsys/stty.s | 6 ++++- mach/m68k2/libsys/sync.s | 6 ++++- mach/m68k2/libsys/time.s | 6 ++++- mach/m68k2/libsys/times.s | 6 ++++- mach/m68k2/libsys/umount.s | 6 ++++- mach/m68k2/libsys/unlink.s | 6 ++++- mach/m68k2/libsys/wait.s | 4 +++ mach/m68k2/libsys/write.s | 6 ++++- 45 files changed, 242 insertions(+), 95 deletions(-) diff --git a/mach/m68k2/libsys/Makefile b/mach/m68k2/libsys/Makefile index 5cc6f2ca5..b3cdc9284 100644 --- a/mach/m68k2/libsys/Makefile +++ b/mach/m68k2/libsys/Makefile @@ -1,11 +1,21 @@ # $Header$ -install: - ../../install tail_mon.a tail_mon +MACH=m68k2 +all: tail_mon +install: all + ../../install tail_mon -clean : +cmp: all + -../../compare tail_mon + +tail_mon: + ASAR=aal ; export ASAR ;\ + march . tail_mon + +clean: + rm -f *.o opr : - make pr | opr + make pr | opr pr: - @ar pv tail_mon.a + @ar pv tail_mon.a diff --git a/mach/m68k2/libsys/_exit.s b/mach/m68k2/libsys/_exit.s index 398c93904..253c6839e 100644 --- a/mach/m68k2/libsys/_exit.s +++ b/mach/m68k2/libsys/_exit.s @@ -1,6 +1,10 @@ .define __exit +.sect .text +.sect .rom +.sect .data +.sect .bss .extern __exit -.text +.sect .text __exit: move.w #0x1,d0 move.w 4(sp),a0 trap #0 diff --git a/mach/m68k2/libsys/access.s b/mach/m68k2/libsys/access.s index fdceffbf7..ae81a1e44 100644 --- a/mach/m68k2/libsys/access.s +++ b/mach/m68k2/libsys/access.s @@ -1,6 +1,10 @@ .define _access +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _access -.text +.sect .text _access: move.w #0x21,d0 move.l 4(sp),a0 move.w 8(sp),d1 diff --git a/mach/m68k2/libsys/alarm.s b/mach/m68k2/libsys/alarm.s index 98781a707..2d682210c 100644 --- a/mach/m68k2/libsys/alarm.s +++ b/mach/m68k2/libsys/alarm.s @@ -1,6 +1,10 @@ .define _alarm +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _alarm -.text +.sect .text _alarm: clr.l d0 move.w 4(sp),d0 move.l d0,a0 diff --git a/mach/m68k2/libsys/brk.s b/mach/m68k2/libsys/brk.s index 0d33d0739..9f2115082 100644 --- a/mach/m68k2/libsys/brk.s +++ b/mach/m68k2/libsys/brk.s @@ -1,8 +1,12 @@ .define _brk .define _sbrk +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _brk .extern _sbrk -.text +.sect .text _sbrk: move.l nd,a0 add.w 4(sp),a0 move.w #0x11,d0 @@ -21,6 +25,6 @@ _brk: move.w #0x11,d0 move.l 4(sp),nd clr.l d0 rts -.data -nd: .long endbss -.text +.sect .data +nd: .data4 endbss +.sect .text diff --git a/mach/m68k2/libsys/call.s b/mach/m68k2/libsys/call.s index 846fb7797..a76c593cb 100644 --- a/mach/m68k2/libsys/call.s +++ b/mach/m68k2/libsys/call.s @@ -3,12 +3,16 @@ .define calle .define cerror .define _errno +.sect .text +.sect .rom +.sect .data +.sect .bss .extern call .extern callc .extern calle .extern cerror .extern _errno -.text +.sect .text call: trap #0 bcs cerror rts @@ -23,6 +27,6 @@ cerror: move.w d0,_errno move.l #-1,d0 rts -.bss +.sect .bss _errno: .space 4 -.text +.sect .text diff --git a/mach/m68k2/libsys/chdir.s b/mach/m68k2/libsys/chdir.s index d03224aea..3965b6997 100644 --- a/mach/m68k2/libsys/chdir.s +++ b/mach/m68k2/libsys/chdir.s @@ -1,6 +1,10 @@ .define _chdir +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _chdir -.text +.sect .text _chdir: move.w #0xC,d0 move.l 4(sp),a0 jmp callc diff --git a/mach/m68k2/libsys/chmod.s b/mach/m68k2/libsys/chmod.s index 6c86e3a25..312c119de 100644 --- a/mach/m68k2/libsys/chmod.s +++ b/mach/m68k2/libsys/chmod.s @@ -1,6 +1,10 @@ .define _chmod +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _chmod -.text +.sect .text _chmod: move.w #0xF,d0 move.l 4(sp),a0 move.w 8(sp),d1 diff --git a/mach/m68k2/libsys/chroot.s b/mach/m68k2/libsys/chroot.s index ebf9f6a42..5e8f79bc6 100644 --- a/mach/m68k2/libsys/chroot.s +++ b/mach/m68k2/libsys/chroot.s @@ -1,6 +1,10 @@ .define _chroot +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _chroot -.text +.sect .text _chroot: move.w #0x3D,d0 move.l 4(sp),a0 jmp callc diff --git a/mach/m68k2/libsys/cleanup.s b/mach/m68k2/libsys/cleanup.s index 7df1860b5..e47393f08 100644 --- a/mach/m68k2/libsys/cleanup.s +++ b/mach/m68k2/libsys/cleanup.s @@ -1,6 +1,10 @@ .define __cleanup +.sect .text +.sect .rom +.sect .data +.sect .bss .extern __cleanup -.text +.sect .text __cleanup: tst.b -40(sp) link a6,#-0 diff --git a/mach/m68k2/libsys/close.s b/mach/m68k2/libsys/close.s index add7e7012..0d0e04d91 100644 --- a/mach/m68k2/libsys/close.s +++ b/mach/m68k2/libsys/close.s @@ -1,6 +1,10 @@ .define _close +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _close -.text +.sect .text _close: move.w #0x6,d0 move.w 4(sp),a0 jmp callc diff --git a/mach/m68k2/libsys/creat.s b/mach/m68k2/libsys/creat.s index 73e7db84a..a8e0e051f 100644 --- a/mach/m68k2/libsys/creat.s +++ b/mach/m68k2/libsys/creat.s @@ -1,6 +1,10 @@ .define _creat +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _creat -.text +.sect .text _creat: move.w #0x8,d0 move.l 4(sp),a0 move.w 8(sp),d1 diff --git a/mach/m68k2/libsys/execl.s b/mach/m68k2/libsys/execl.s index 21e03dc9d..0fbfd8aed 100644 --- a/mach/m68k2/libsys/execl.s +++ b/mach/m68k2/libsys/execl.s @@ -1,4 +1,8 @@ .define _execl +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _execl _execl: link a6,#0 tst.b -132(sp) diff --git a/mach/m68k2/libsys/execve.s b/mach/m68k2/libsys/execve.s index 2b2de5f84..e6d6a950f 100644 --- a/mach/m68k2/libsys/execve.s +++ b/mach/m68k2/libsys/execve.s @@ -1,6 +1,10 @@ .define _execve +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _execve -.text +.sect .text _execve: move.w #0x3B,d0 move.l 4(sp),a0 move.l 8(sp),d1 diff --git a/mach/m68k2/libsys/exit.s b/mach/m68k2/libsys/exit.s index d766750e7..79e4358cd 100644 --- a/mach/m68k2/libsys/exit.s +++ b/mach/m68k2/libsys/exit.s @@ -1,6 +1,10 @@ .define _exit +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _exit -.text +.sect .text _exit: tst.b -40(sp) link a6,#-0 diff --git a/mach/m68k2/libsys/fork.s b/mach/m68k2/libsys/fork.s index 0401e6312..bccd3dd5b 100644 --- a/mach/m68k2/libsys/fork.s +++ b/mach/m68k2/libsys/fork.s @@ -1,6 +1,10 @@ .define _fork +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _fork -.text +.sect .text _fork: move.w #0x2,d0 trap #0 bra 1f diff --git a/mach/m68k2/libsys/fstat.s b/mach/m68k2/libsys/fstat.s index 1dd3d66c7..bfda6d9b6 100644 --- a/mach/m68k2/libsys/fstat.s +++ b/mach/m68k2/libsys/fstat.s @@ -1,4 +1,8 @@ .define _fstat +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _fstat _fstat: move.w #0x1C,d0 move.w 4(sp),a0 diff --git a/mach/m68k2/libsys/getegid.s b/mach/m68k2/libsys/getegid.s index b4da40c1d..557c8fe28 100644 --- a/mach/m68k2/libsys/getegid.s +++ b/mach/m68k2/libsys/getegid.s @@ -1,6 +1,10 @@ .define _getegid +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _getegid -.text +.sect .text _getegid: move.w #0x2F,d0 trap #0 move.l d1,d0 diff --git a/mach/m68k2/libsys/getgid.s b/mach/m68k2/libsys/getgid.s index 3ef4def31..d24e82eff 100644 --- a/mach/m68k2/libsys/getgid.s +++ b/mach/m68k2/libsys/getgid.s @@ -1,6 +1,10 @@ .define _getgid +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _getgid -.text +.sect .text _getgid: move.w #0x2F,d0 trap #0 rts diff --git a/mach/m68k2/libsys/getpid.s b/mach/m68k2/libsys/getpid.s index 1bf2aba7e..6d8274f33 100644 --- a/mach/m68k2/libsys/getpid.s +++ b/mach/m68k2/libsys/getpid.s @@ -1,6 +1,10 @@ .define _getpid +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _getpid -.text +.sect .text _getpid: move.w #0x14,d0 trap #0 rts diff --git a/mach/m68k2/libsys/getuid.s b/mach/m68k2/libsys/getuid.s index d0e15a1b0..bbc7e3f3a 100644 --- a/mach/m68k2/libsys/getuid.s +++ b/mach/m68k2/libsys/getuid.s @@ -1,6 +1,10 @@ .define _getuid +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _getuid -.text +.sect .text _getuid: move.w #0x18,d0 trap #0 rts diff --git a/mach/m68k2/libsys/gtty.s b/mach/m68k2/libsys/gtty.s index ee9f096c8..2ed359174 100644 --- a/mach/m68k2/libsys/gtty.s +++ b/mach/m68k2/libsys/gtty.s @@ -1,6 +1,10 @@ .define _gtty +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _gtty -.text +.sect .text _gtty: tst.b -40(sp) link a6,#-0 diff --git a/mach/m68k2/libsys/ioctl.s b/mach/m68k2/libsys/ioctl.s index 75d16214c..3887f124e 100644 --- a/mach/m68k2/libsys/ioctl.s +++ b/mach/m68k2/libsys/ioctl.s @@ -1,6 +1,10 @@ .define _ioctl +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _ioctl -.text +.sect .text _ioctl: move.w #0x36,d0 move.w 4(sp),a0 move.w 6(sp),d1 diff --git a/mach/m68k2/libsys/kill.s b/mach/m68k2/libsys/kill.s index c5c4038cc..7e2fdbb8a 100644 --- a/mach/m68k2/libsys/kill.s +++ b/mach/m68k2/libsys/kill.s @@ -1,6 +1,10 @@ .define _kill +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _kill -.text +.sect .text _kill: move.w #0x25,d0 move.w 4(sp),a0 move.w 6(sp),d1 diff --git a/mach/m68k2/libsys/link.s b/mach/m68k2/libsys/link.s index 161ca6d1d..990a2ed14 100644 --- a/mach/m68k2/libsys/link.s +++ b/mach/m68k2/libsys/link.s @@ -1,6 +1,10 @@ .define _link +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _link -.text +.sect .text _link: move.w #0x9,d0 move.l 4(sp),a0 move.w 8(sp),d1 diff --git a/mach/m68k2/libsys/lseek.s b/mach/m68k2/libsys/lseek.s index 96f670e7f..b7d7eeb10 100644 --- a/mach/m68k2/libsys/lseek.s +++ b/mach/m68k2/libsys/lseek.s @@ -1,6 +1,10 @@ .define _lseek +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _lseek -.text +.sect .text _lseek: move.w #0x13,d0 move.w 4(sp),a0 move.l 6(sp),d1 diff --git a/mach/m68k2/libsys/mknod.s b/mach/m68k2/libsys/mknod.s index 21d86ad0e..58ea7a74e 100644 --- a/mach/m68k2/libsys/mknod.s +++ b/mach/m68k2/libsys/mknod.s @@ -1,6 +1,10 @@ .define _mknod +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _mknod -.text +.sect .text _mknod: move.w #0xE,d0 move.l 4(sp),a0 move.w 8(sp),d1 diff --git a/mach/m68k2/libsys/mount.s b/mach/m68k2/libsys/mount.s index b7d37737a..2c757d814 100644 --- a/mach/m68k2/libsys/mount.s +++ b/mach/m68k2/libsys/mount.s @@ -1,7 +1,11 @@ - .define _mount +.sect .text +.sect .rom +.sect .data +.sect .bss + .extern _mount -.text +.sect .text _mount: move.w #0x15,d0 move.l 4(sp),a0 move.l 8(sp),d1 diff --git a/mach/m68k2/libsys/nice.s b/mach/m68k2/libsys/nice.s index 4929617bc..563a5ab1b 100644 --- a/mach/m68k2/libsys/nice.s +++ b/mach/m68k2/libsys/nice.s @@ -1,6 +1,10 @@ .define _nice +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _nice -.text +.sect .text _nice: move.w #0x22,d0 move.w 4(sp),a0 jmp callc diff --git a/mach/m68k2/libsys/open.s b/mach/m68k2/libsys/open.s index 04b3b5054..3d377e4e2 100644 --- a/mach/m68k2/libsys/open.s +++ b/mach/m68k2/libsys/open.s @@ -1,6 +1,10 @@ .define _open +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _open -.text +.sect .text _open: move.w #0x5,d0 move.l 4(sp),a0 move.w 8(sp),d1 diff --git a/mach/m68k2/libsys/pause.s b/mach/m68k2/libsys/pause.s index 53b99d732..d4d27a779 100644 --- a/mach/m68k2/libsys/pause.s +++ b/mach/m68k2/libsys/pause.s @@ -1,6 +1,10 @@ .define _pause +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _pause -.text +.sect .text _pause: move.w #0x1D,d0 trap #0 rts diff --git a/mach/m68k2/libsys/read.s b/mach/m68k2/libsys/read.s index a5e0449a7..532a9df2b 100644 --- a/mach/m68k2/libsys/read.s +++ b/mach/m68k2/libsys/read.s @@ -1,6 +1,10 @@ .define _read +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _read -.text +.sect .text _read: move.w #0x3,d0 move.w 4(sp),a0 move.l 6(sp),d1 diff --git a/mach/m68k2/libsys/setgid.s b/mach/m68k2/libsys/setgid.s index 5ad03004d..1a53660af 100644 --- a/mach/m68k2/libsys/setgid.s +++ b/mach/m68k2/libsys/setgid.s @@ -1,6 +1,10 @@ .define _setgid +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _setgid -.text +.sect .text _setgid: move.w #0x2E,d0 move.w 4(sp),a0 jmp callc diff --git a/mach/m68k2/libsys/setuid.s b/mach/m68k2/libsys/setuid.s index 94cc45ef6..689fb00cc 100644 --- a/mach/m68k2/libsys/setuid.s +++ b/mach/m68k2/libsys/setuid.s @@ -1,6 +1,10 @@ .define _setuid +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _setuid -.text +.sect .text _setuid: move.w #0x17,d0 move.w 4(sp),a0 jmp callc diff --git a/mach/m68k2/libsys/signal.s b/mach/m68k2/libsys/signal.s index 90acbc54e..01f5df5e4 100644 --- a/mach/m68k2/libsys/signal.s +++ b/mach/m68k2/libsys/signal.s @@ -1,10 +1,13 @@ - .define _signal +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _signal NSIG=32 _signal: move.w 4(sp), d0 - ext.l d0 + ext.l d0 cmp.l #NSIG,d0 bcc 1f move.l 6(sp),d1 @@ -17,9 +20,7 @@ _signal: beq 2f btst #0,d1 bne 2f - move.l #jmptab,d1 - add.l d0,d1 - add.l d0,d1 + move.l #enter,d1 2: move.l d0,a0 move.w #0x30,d0 @@ -29,52 +30,16 @@ _signal: bne 4f move.l a1,d0 4: - clr.l d1 rts 1: move.l #22,d0 3: jmp cerror -jmptab: bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter - bsr enter enter: movem.l d0/d1/a0/a1,-(sp) - move.l 16(sp),d0 - sub.l #jmptab+2,d0 - asr.l #1,d0 - move.l d0,-(sp) - move.l d0,a0 + move.l 16(sp),a0 + move.l a0,-(sp) add.l a0,a0 add.l a0,a0 add.l #dvect,a0 @@ -84,5 +49,5 @@ enter: movem.l (sp)+,d0/d1/a0/a1 add.l #4,sp rtr -.bss +.sect .bss dvect: .space 4*NSIG diff --git a/mach/m68k2/libsys/stat.s b/mach/m68k2/libsys/stat.s index 304c38b1b..b41a8a6c6 100644 --- a/mach/m68k2/libsys/stat.s +++ b/mach/m68k2/libsys/stat.s @@ -1,6 +1,10 @@ .define _stat +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _stat -.text +.sect .text _stat: move.w #0x12,d0 move.l 4(sp),a0 move.w 8(sp),d1 diff --git a/mach/m68k2/libsys/stime.s b/mach/m68k2/libsys/stime.s index bac6386de..139e7c06a 100644 --- a/mach/m68k2/libsys/stime.s +++ b/mach/m68k2/libsys/stime.s @@ -1,6 +1,10 @@ .define _stime +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _stime -.text +.sect .text _stime: move.w #0x19,d0 move.l 4(sp),a0 move.l (a0),a0 diff --git a/mach/m68k2/libsys/stty.s b/mach/m68k2/libsys/stty.s index 46a497cd8..0fb9199e5 100644 --- a/mach/m68k2/libsys/stty.s +++ b/mach/m68k2/libsys/stty.s @@ -1,6 +1,10 @@ .define _stty +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _stty -.text +.sect .text _stty: tst.b -40(sp) link a6,#-0 diff --git a/mach/m68k2/libsys/sync.s b/mach/m68k2/libsys/sync.s index 3c38a8ada..8941aa29f 100644 --- a/mach/m68k2/libsys/sync.s +++ b/mach/m68k2/libsys/sync.s @@ -1,6 +1,10 @@ .define _sync +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _sync -.text +.sect .text _sync: move.w #0x24,d0 trap #0 rts diff --git a/mach/m68k2/libsys/time.s b/mach/m68k2/libsys/time.s index 87b9d8bd3..dc7aecb79 100644 --- a/mach/m68k2/libsys/time.s +++ b/mach/m68k2/libsys/time.s @@ -1,6 +1,10 @@ .define _time +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _time -.text +.sect .text _time: move.w #0xD,d0 trap #0 tst.l 4(sp) diff --git a/mach/m68k2/libsys/times.s b/mach/m68k2/libsys/times.s index 6e74fe9aa..4854e8599 100644 --- a/mach/m68k2/libsys/times.s +++ b/mach/m68k2/libsys/times.s @@ -1,6 +1,10 @@ .define _times +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _times -.text +.sect .text _times: move.w #0x2B,d0 move.l 4(sp),a0 trap #0 diff --git a/mach/m68k2/libsys/umount.s b/mach/m68k2/libsys/umount.s index 59354ee90..d6143017a 100644 --- a/mach/m68k2/libsys/umount.s +++ b/mach/m68k2/libsys/umount.s @@ -1,6 +1,10 @@ .define _umount +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _umount -.text +.sect .text _umount: move.w #0x16,d0 move.l 4(sp),a0 jmp callc diff --git a/mach/m68k2/libsys/unlink.s b/mach/m68k2/libsys/unlink.s index 99e856a5a..f0b200546 100644 --- a/mach/m68k2/libsys/unlink.s +++ b/mach/m68k2/libsys/unlink.s @@ -1,6 +1,10 @@ .define _unlink +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _unlink -.text +.sect .text _unlink: move.w #0xA,d0 move.l 4(sp),a0 jmp callc diff --git a/mach/m68k2/libsys/wait.s b/mach/m68k2/libsys/wait.s index a0ea1a5e9..c5a5de105 100644 --- a/mach/m68k2/libsys/wait.s +++ b/mach/m68k2/libsys/wait.s @@ -1,4 +1,8 @@ .define _wait +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _wait _wait: move.w #0x7,d0 move.l 4(sp),a0 diff --git a/mach/m68k2/libsys/write.s b/mach/m68k2/libsys/write.s index 192d7adbe..fce2cdb24 100644 --- a/mach/m68k2/libsys/write.s +++ b/mach/m68k2/libsys/write.s @@ -1,6 +1,10 @@ .define _write +.sect .text +.sect .rom +.sect .data +.sect .bss .extern _write -.text +.sect .text _write: move.w #0x4,d0 move.w 4(sp),a0 move.l 6(sp),d1