From 974463cbd4ac09f0b24ef491e2dce1edd9ccfda6 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 19 Dec 1990 12:42:21 +0000 Subject: [PATCH] Fixed stat interface --- mach/mantra/libsys/_fstat.s | 19 +++++++++++++++++-- mach/mantra/libsys/fstat.s | 17 ++++++++++++++++- mach/mantra/libsys/stat.s | 17 ++++++++++++++++- 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/mach/mantra/libsys/_fstat.s b/mach/mantra/libsys/_fstat.s index 48ec96e9d..781618998 100644 --- a/mach/mantra/libsys/_fstat.s +++ b/mach/mantra/libsys/_fstat.s @@ -5,7 +5,22 @@ .sect .data .sect .bss .sect .text -__fstat: move.l #0x1C,d0 +__fstat: move.l #0x1C,d0 move.l 4(sp),a0 move.l 8(sp),d1 - jmp callc + jsr callc + tst.l d0 + blt 1f + move.l 4(sp),a0 + add.l #30,a0 + lea 2(a0),a1 + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) +1: + rts diff --git a/mach/mantra/libsys/fstat.s b/mach/mantra/libsys/fstat.s index dd8fdc8d6..c720f5d7a 100644 --- a/mach/mantra/libsys/fstat.s +++ b/mach/mantra/libsys/fstat.s @@ -8,4 +8,19 @@ _fstat: move.l #0x1C,d0 move.l 4(sp),a0 move.l 8(sp),d1 - jmp callc + jsr callc + tst.l d0 + blt 1f + move.l 4(sp),a0 + add.l #30,a0 + lea 2(a0),a1 + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) +1: + rts diff --git a/mach/mantra/libsys/stat.s b/mach/mantra/libsys/stat.s index 461767bf4..fbf217f65 100644 --- a/mach/mantra/libsys/stat.s +++ b/mach/mantra/libsys/stat.s @@ -8,4 +8,19 @@ _stat: move.l #0x12,d0 move.l 4(sp),a0 move.l 8(sp),d1 - jmp callc + jsr callc + tst.l d0 + blt 1f + move.l 4(sp),a0 + add.l #30,a0 + lea 2(a0),a1 + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) + move.w -(a0),-(a1) +1: + rts