home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-03-22 | 26.3 KB | 1,162 lines |
- *** 1.68 1992/03/10 15:11:47
- --- Changelo 1992/03/22 22:00:03
- ***************
- *** 2860,2862 ****
- --- 2860,2913 ----
- moved with a movw instead of movl.
-
- ---------------------------- Patchlevel 77 ---------------------------
- +
- + spawnve.c:: Marcus Nick
- + cmlen was'nt being initialized before counting the chars in
- + args loop.
- +
- + osbind.h:: ++jrb
- + -- another re-hack needed for gcc-2.0: the optimization that we
- + used earlier for traps with more than 4 args, making them volatile
- + and using "g" constraints no longer works, because gcc has become
- + so smart! we now remove the volatile, and give "r" constraints
- + (just like traps with <= 4 args). that way the args are evaled
- + before we change the stack under gcc, and at appropriate times
- + put into reggies and pushed (or as in most cases, they are evaled
- + straight into reggies and pushed -- and in even more common cases
- + they are already in reggies, and they are just pushed). not doing
- + this with -fomit-frame-pointer was causing the temps (from evaluing
- + the args) to be created on the stack, but when we changed sp
- + from under gccs feet, the offsets to the temps ended up being wrong.
- +
- + osbind.c:: ++jrb
- + do the same.
- +
- + fread.c fwrite.c ioctl.c system.c textio.c
- + compiler.h ioctl.h osbind.h ostruct.h stdlib.h:: ++jrb
- + sync with mntlib pl19 changes -- thanks ers
- + osbind.h had incorrect fn# for Xbtimer
- + other changes mostly for soz compatibility.
- +
- + filbuf.c getlogin.c lseek.c read.c:: ++jrb
- + fixed up a few warnings.
- +
- + crt0.c:: ++jrb
- + round the temporary stack to a long word boundary.
- +
- + minimal.h:: michal
- + tidy up protos
- + (in case you did'nt know <minimal.h> is used to make small executables
- + that dont use any stdio etc. it avoids pulling in _main() and all
- + the stdio, atexit etc etc related code).
- + for instance here is a minimal hello world:
- + #include <minimal.h>
- + #include <osbind.h>
- + main()
- + {
- + Cconws("Hello World\r\n");
- + }
- +
- + atof.c:: Michael
- + merge diff for atof
- +
- + ---------------------------- Patchlevel 78 ---------------------------
- *** 1.53 1992/03/10 15:11:47
- --- PatchLev.h 1992/03/22 22:00:04
- ***************
- *** 1,5 ****
-
- ! #define PatchLevel "77"
-
- /*
- *
- --- 1,5 ----
-
- ! #define PatchLevel "78"
-
- /*
- *
- *** 1.20 1992/02/04 17:11:06
- --- atof.c 1992/03/22 22:00:12
- ***************
- *** 651,660 ****
- .globl __Float_
- __Float_:
- ftentoxl a7@(8),fp1 | load Exponent_1
- ! ftentoxl a7@(16),fp2 | load Exponent_2
- ! fmull a7@(12),fp2 | fmull Value_2 -> fp2
- fmull a7@(4),fp1 | fmull Value_1 -> fp1
- ! faddx fp2,fp1
- fmoved fp1,a7@- | fmoved fp1 -> d0/d1
- moveml a7@+,d0-d1
- rts
- --- 651,660 ----
- .globl __Float_
- __Float_:
- ftentoxl a7@(8),fp1 | load Exponent_1
- ! ftentoxl a7@(16),fp0 | load Exponent_2
- ! fmull a7@(12),fp0 | fmull Value_2 -> fp0
- fmull a7@(4),fp1 | fmull Value_1 -> fp1
- ! faddx fp0,fp1
- fmoved fp1,a7@- | fmoved fp1 -> d0/d1
- moveml a7@+,d0-d1
- rts
- *** 1.20 1992/03/06 19:19:47
- --- crt0.c 1992/03/22 22:00:15
- ***************
- *** 210,216 ****
- _start1() will finally set sp to its final value and
- then do a mshrink().
- */
- ! asm volatile("movl %0,sp" ::"r"((long)bp->p_hitpa & ~1L));
- _start1(bp);
- }
-
- --- 210,216 ----
- _start1() will finally set sp to its final value and
- then do a mshrink().
- */
- ! asm volatile("movl %0,sp" ::"r"((long)bp->p_hitpa & ~3L));
- _start1(bp);
- }
-
- *** 1.8 1991/04/23 16:04:12
- --- filbuf.c 1992/03/22 22:00:18
- ***************
- *** 17,26 ****
- #include <memory.h>
- #include "lib.h"
-
- - #ifdef __GNUC__
- - #define alloca __builtin_alloca
- - #endif
- -
- int _filbuf(fp)
- FILE *fp;
- {
- --- 17,22 ----
- *** 1.10 1991/12/26 15:53:59
- --- fread.c 1992/03/22 22:00:20
- ***************
- *** 43,49 ****
- fp->_cnt -= cnt;
- fp->_ptr += cnt;
- l += cnt;
- ! data += cnt;
- n -= cnt;
- }
- /* n == how much more */
- --- 43,49 ----
- fp->_cnt -= cnt;
- fp->_ptr += cnt;
- l += cnt;
- ! data = (char *)data + cnt;
- n -= cnt;
- }
- /* n == how much more */
- *** 1.9 1991/04/23 16:04:12
- --- fwrite.c 1992/03/22 22:00:21
- ***************
- *** 51,57 ****
- fp->_flag |= _IOWRT; /* fflush resets this */
- }
- l += m;
- ! data += m;
- n -= m;
- if(n < space)
- continue;
- --- 51,57 ----
- fp->_flag |= _IOWRT; /* fflush resets this */
- }
- l += m;
- ! data = (char *)data + m;
- n -= m;
- if(n < space)
- continue;
- *** 1.5 1991/04/26 03:42:08
- --- getlogin.c 1992/03/22 22:00:22
- ***************
- *** 9,18 ****
- #include <stdlib.h>
- #include <memory.h>
-
- - #ifdef __GNUC__
- - #define alloca __builtin_alloca
- - #endif
- -
- static char *logname = NULL;
-
- char *getlogin()
- --- 9,14 ----
- *** 1.7 1991/12/26 15:53:59
- --- ioctl.c 1992/03/22 22:00:25
- ***************
- *** 90,96 ****
- {
- struct winsize *win = (struct winsize *)arg;
-
- ! (void)linea0();
- win->ws_row = V_CEL_MY + 1;
- win->ws_col = V_CEL_MX + 1;
- win->ws_xpixel = V_X_MAX;
- --- 90,100 ----
- {
- struct winsize *win = (struct winsize *)arg;
-
- ! #ifndef __SOZOBON__
- ! (void)linea0();
- ! #else /* __SOZOBON__ */
- ! linea0();
- ! #endif /* __SOZOBON__ */
- win->ws_row = V_CEL_MY + 1;
- win->ws_col = V_CEL_MX + 1;
- win->ws_xpixel = V_X_MAX;
- *** 1.6 1991/04/26 03:42:08
- --- lseek.c 1992/03/22 22:00:26
- ***************
- *** 10,19 ****
- #include <compiler.h>
- #endif
-
- - #ifdef __GNUC__
- - #define alloca __builtin_alloca
- - #endif
- -
- static long _real_lseek __PROTO((int h, long where, int how));
-
-
- --- 10,15 ----
- *** 1.29 1992/03/10 15:11:47
- --- makefile.16 1992/03/22 22:00:27
- ***************
- *** 15,24 ****
- CFFLAGS = $(COPTS) -mshort
-
- # normal CFLAGS including int size and omit-frame-pointer
- ! CFLAGS= $(CFFLAGS) # -fomit-frame-pointer
-
- # cflags for stuff that needs to be compiled with 32 bit ints
- ! CLFLAGS= $(COPTS) -DSHORTLIB # -fomit-frame-pointer
-
- # flags to $(CC) when it runs the assembler only
- ASFLAGS= -c
- --- 15,24 ----
- CFFLAGS = $(COPTS) -mshort
-
- # normal CFLAGS including int size and omit-frame-pointer
- ! CFLAGS= $(CFFLAGS) -fomit-frame-pointer
-
- # cflags for stuff that needs to be compiled with 32 bit ints
- ! CLFLAGS= $(COPTS) -DSHORTLIB -fomit-frame-pointer
-
- # flags to $(CC) when it runs the assembler only
- ASFLAGS= -c
- *** 1.28 1992/03/10 15:11:47
- --- makefile.32 1992/03/22 22:00:27
- ***************
- *** 15,21 ****
- CFFLAGS = $(COPTS)
-
- # normal CFLAGS including int size and omit-frame-pointer
- ! CFLAGS= $(CFFLAGS) # -fomit-frame-pointer
-
- # cflags for stuff that needs to be compiled with 32 bit ints
- CLFLAGS= $(CFLAGS)
- --- 15,21 ----
- CFFLAGS = $(COPTS)
-
- # normal CFLAGS including int size and omit-frame-pointer
- ! CFLAGS= $(CFFLAGS) -fomit-frame-pointer
-
- # cflags for stuff that needs to be compiled with 32 bit ints
- CLFLAGS= $(CFLAGS)
- *** 1.3 1991/03/13 14:58:25
- --- osbind.c 1992/03/22 22:00:31
- ***************
- *** 29,35 ****
- long trap_1_ww(short n, short a)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
-
- __asm__ volatile
- ("
- --- 29,35 ----
- long trap_1_ww(short n, short a)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
-
- __asm__ volatile
- ("
- ***************
- *** 47,53 ****
- long trap_1_wl(short n, long a)
- {
- register long retvalue __asm__("d0");
- ! long _a = (long) (a);
-
- __asm__ volatile
- ("
- --- 47,53 ----
- long trap_1_wl(short n, long a)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
-
- __asm__ volatile
- ("
- ***************
- *** 65,72 ****
- long trap_1_wlw(short n, long a, short b)
- {
- register long retvalue __asm__("d0");
- ! long _a = (long) (a);
- ! short _b = (short)(b);
-
- __asm__ volatile
- ("
- --- 65,72 ----
- long trap_1_wlw(short n, long a, short b)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
- ! short _b = (b);
-
- __asm__ volatile
- ("
- ***************
- *** 85,93 ****
- long trap_1_wwll(short n, short a, long b, long c)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
- ! long _b = (long) (b);
- ! long _c = (long) (c);
-
- __asm__ volatile
- ("
- --- 85,93 ----
- long trap_1_wwll(short n, short a, long b, long c)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! long _b = (b);
- ! long _c = (c);
-
- __asm__ volatile
- ("
- ***************
- *** 107,115 ****
- long trap_1_wlww(short n, long a, short b, short c)
- {
- register long retvalue __asm__("d0");
- ! long _a = (long) (a);
- ! short _b = (short)(b);
- ! short _c = (short)(c);
-
- __asm__ volatile
- ("
- --- 107,115 ----
- long trap_1_wlww(short n, long a, short b, short c)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
- ! short _b = (b);
- ! short _c = (c);
-
- __asm__ volatile
- ("
- ***************
- *** 129,136 ****
- long trap_1_www(short n, short a, short b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
- ! short _b = (short)(b);
-
- __asm__ volatile
- ("
- --- 129,136 ----
- long trap_1_www(short n, short a, short b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! short _b = (b);
-
- __asm__ volatile
- ("
- ***************
- *** 149,156 ****
- long trap_1_wll(short n, long a, long b)
- {
- register long retvalue __asm__("d0");
- ! long _a = (long) (a);
- ! long _b = (long) (b);
-
- __asm__ volatile
- ("
- --- 149,156 ----
- long trap_1_wll(short n, long a, long b)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
- ! long _b = (b);
-
- __asm__ volatile
- ("
- ***************
- *** 169,178 ****
- long trap_1_wwlll(short n, short a, long b, long c, long d)
- {
- register long retvalue __asm__("d0");
- ! volatile short _a = (volatile short)(a);
- ! volatile long _b = (volatile long) (b);
- ! volatile long _c = (volatile long) (c);
- ! volatile long _d = (volatile long) (d);
-
- __asm__ volatile
- ("
- --- 169,178 ----
- long trap_1_wwlll(short n, short a, long b, long c, long d)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! long _b = (b);
- ! long _c = (c);
- ! long _d = (d);
-
- __asm__ volatile
- ("
- ***************
- *** 182,188 ****
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(n), "g"(_a), "g"(_b), "g"(_c), "g"(_d) /* inputs */
- );
- /* no more than 5 operand allowed in asm() -- therefore the split */
-
- --- 182,188 ----
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(n), "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs */
- );
- /* no more than 5 operand allowed in asm() -- therefore the split */
-
- ***************
- *** 200,206 ****
- long trap_13_wl(short n, long a)
- {
- register long retvalue __asm__("d0");
- ! long _a = (long) (a);
-
- __asm__ volatile
- ("
- --- 200,206 ----
- long trap_13_wl(short n, long a)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
-
- __asm__ volatile
- ("
- ***************
- *** 234,240 ****
- long trap_13_ww(short n, short a)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
-
- __asm__ volatile
- ("
- --- 234,240 ----
- long trap_13_ww(short n, short a)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
-
- __asm__ volatile
- ("
- ***************
- *** 252,259 ****
- long trap_13_www(short n, short a, short b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
- ! short _b = (short)(b);
-
- __asm__ volatile
- ("
- --- 252,259 ----
- long trap_13_www(short n, short a, short b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! short _b = (b);
-
- __asm__ volatile
- ("
- ***************
- *** 272,282 ****
- long trap_13_wwlwww(short n, short a, long b, short c, short d, short e)
- {
- register long retvalue __asm__("d0");
- ! volatile short _a = (volatile short)(a);
- ! volatile long _b = (volatile long) (b);
- ! volatile short _c = (volatile short)(c);
- ! volatile short _d = (volatile short)(d);
- ! volatile short _e = (volatile short)(e);
-
- __asm__ volatile
- ("
- --- 272,282 ----
- long trap_13_wwlwww(short n, short a, long b, short c, short d, short e)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! long _b = (b);
- ! short _c = (c);
- ! short _d = (d);
- ! short _e = (e);
-
- __asm__ volatile
- ("
- ***************
- *** 286,292 ****
- movl %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "g"(_a), "g"(_b), "g"(_c), "g"(_d), "g"(_e) /* inputs */
- );
-
- __asm__ volatile
- --- 286,292 ----
- movl %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(_a), "r"(_b), "r"(_c), "r"(_d), "r"(_e) /* inputs */
- );
-
- __asm__ volatile
- ***************
- *** 304,311 ****
- long trap_13_wwl(short n, short a, long b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
- ! long _b = (long) (b);
-
- __asm__ volatile
- ("
- --- 304,311 ----
- long trap_13_wwl(short n, short a, long b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! long _b = (b);
-
- __asm__ volatile
- ("
- ***************
- *** 324,331 ****
- long trap_14_wwl(short n, short a, long b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
- ! long _b = (long) (b);
-
- __asm__ volatile
- ("
- --- 324,331 ----
- long trap_14_wwl(short n, short a, long b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! long _b = (b);
-
- __asm__ volatile
- ("
- ***************
- *** 344,352 ****
- long trap_14_wwll(short n, short a, long b, long c)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
- ! long _b = (long) (b);
- ! long _c = (long) (c);
-
- __asm__ volatile
- ("
- --- 344,352 ----
- long trap_14_wwll(short n, short a, long b, long c)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! long _b = (b);
- ! long _c = (c);
-
- __asm__ volatile
- ("
- ***************
- *** 366,372 ****
- long trap_14_ww(short n, short a)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
-
- __asm__ volatile
- ("
- --- 366,372 ----
- long trap_14_ww(short n, short a)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
-
- __asm__ volatile
- ("
- ***************
- *** 400,408 ****
- long trap_14_wllw(short n, long a, long b, short c)
- {
- register long retvalue __asm__("d0");
- ! long _a = (long) (a);
- ! long _b = (long) (b);
- ! short _c = (short)(c);
-
- __asm__ volatile
- ("
- --- 400,408 ----
- long trap_14_wllw(short n, long a, long b, short c)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
- ! long _b = (b);
- ! short _c = (c);
-
- __asm__ volatile
- ("
- ***************
- *** 422,428 ****
- long trap_14_wl(short n, long a)
- {
- register long retvalue __asm__("d0");
- ! long _a = (long) (a);
-
- __asm__ volatile
- ("
- --- 422,428 ----
- long trap_14_wl(short n, long a)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
-
- __asm__ volatile
- ("
- ***************
- *** 440,447 ****
- long trap_14_www(short n, short a, short b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (short)(a);
- ! short _b = (short)(b);
-
- __asm__ volatile
- ("
- --- 440,447 ----
- long trap_14_www(short n, short a, short b)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! short _b = (b);
-
- __asm__ volatile
- ("
- ***************
- *** 461,473 ****
- short f, short g)
- {
- register long retvalue __asm__("d0");
- ! volatile long _a = (volatile long) (a);
- ! volatile long _b = (volatile long) (b);
- ! volatile short _c = (volatile short)(c);
- ! volatile short _d = (volatile short)(d);
- ! volatile short _e = (volatile short)(e);
- ! volatile short _f = (volatile short)(f);
- ! volatile short _g = (volatile short)(g);
-
- __asm__ volatile
- ("
- --- 461,473 ----
- short f, short g)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
- ! long _b = (b);
- ! short _c = (c);
- ! short _d = (d);
- ! short _e = (e);
- ! short _f = (f);
- ! short _g = (g);
-
- __asm__ volatile
- ("
- ***************
- *** 477,483 ****
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "g"(_c), "g"(_d), "g"(_e), "g"(_f), "g"(_g) /* inputs */
- );
-
- __asm__ volatile
- --- 477,483 ----
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(_c), "r"(_d), "r"(_e), "r"(_f), "r"(_g) /* inputs */
- );
-
- __asm__ volatile
- ***************
- *** 488,494 ****
- trap #14;
- addw #20,sp "
- : "=r"(retvalue) /* outputs */
- ! : "r"(n), "g"(_a), "g"(_b) /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- return retvalue;
- --- 488,494 ----
- trap #14;
- addw #20,sp "
- : "=r"(retvalue) /* outputs */
- ! : "r"(n), "r"(_a), "r"(_b) /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- return retvalue;
- ***************
- *** 498,511 ****
- short f, long g, short h)
- {
- register long retvalue __asm__("d0");
- ! volatile long _a = (volatile long) (a);
- ! volatile long _b = (volatile long) (b);
- ! volatile short _c = (volatile short)(c);
- ! volatile short _d = (volatile short)(d);
- ! volatile short _e = (volatile short)(e);
- ! volatile short _f = (volatile short)(f);
- ! volatile long _g = (volatile long) (g);
- ! volatile short _h = (volatile short)(h);
-
- __asm__ volatile
- ("
- --- 498,511 ----
- short f, long g, short h)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
- ! long _b = (b);
- ! short _c = (c);
- ! short _d = (d);
- ! short _e = (e);
- ! short _f = (f);
- ! long _g = (g);
- ! short _h = (h);
-
- __asm__ volatile
- ("
- ***************
- *** 515,521 ****
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "g"(_d), "g"(_e), "g"(_f), "g"(_g), "g"(_h) /* inputs */
- );
-
- __asm__ volatile
- --- 515,521 ----
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(_d), "r"(_e), "r"(_f), "r"(_g), "r"(_h) /* inputs */
- );
-
- __asm__ volatile
- ***************
- *** 527,533 ****
- trap #14;
- addw #24,sp "
- : "=r"(retvalue) /* outputs */
- ! : "r"(n), "g"(_a), "g"(_b), "g"(_c) /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- return retvalue;
- --- 527,533 ----
- trap #14;
- addw #24,sp "
- : "=r"(retvalue) /* outputs */
- ! : "r"(n), "r"(_a), "r"(_b), "r"(_c) /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- return retvalue;
- ***************
- *** 537,551 ****
- short f, short g, long h, short i)
- {
- register long retvalue __asm__("d0");
- ! volatile long _a = (volatile long) (a);
- ! volatile long _b = (volatile long) (b);
- ! volatile short _c = (volatile short)(c);
- ! volatile short _d = (volatile short)(d);
- ! volatile short _e = (volatile short)(e);
- ! volatile short _f = (volatile short)(f);
- ! volatile short _g = (volatile short)(g);
- ! volatile long _h = (volatile long) (h);
- ! volatile short _i = (volatile short)(i);
-
- __asm__ volatile
- ("
- --- 537,551 ----
- short f, short g, long h, short i)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
- ! long _b = (b);
- ! short _c = (c);
- ! short _d = (d);
- ! short _e = (e);
- ! short _f = (f);
- ! short _g = (g);
- ! long _h = (h);
- ! short _i = (i);
-
- __asm__ volatile
- ("
- ***************
- *** 555,561 ****
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "g"(_e), "g"(_f), "g"(_g), "g"(_h), "g"(_i) /* inputs */
- );
-
- __asm__ volatile
- --- 555,561 ----
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(_e), "r"(_f), "r"(_g), "r"(_h), "r"(_i) /* inputs */
- );
-
- __asm__ volatile
- ***************
- *** 566,572 ****
- movl %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(n), "g"(_a), "g"(_b), "g"(_c), "g"(_d) /* inputs */
- );
-
- __asm__ volatile
- --- 566,572 ----
- movl %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(n), "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs */
- );
-
- __asm__ volatile
- ***************
- *** 585,596 ****
- short f)
- {
- register long retvalue __asm__("d0");
- ! volatile short _a = (volatile short)(a);
- ! volatile short _b = (volatile short)(b);
- ! volatile short _c = (volatile short)(c);
- ! volatile short _d = (volatile short)(d);
- ! volatile short _e = (volatile short)(e);
- ! volatile short _f = (volatile short)(f);
-
- __asm__ volatile
- ("
- --- 585,596 ----
- short f)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! short _b = (b);
- ! short _c = (c);
- ! short _d = (d);
- ! short _e = (e);
- ! short _f = (f);
-
- __asm__ volatile
- ("
- ***************
- *** 600,606 ****
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "g"(_b), "g"(_c), "g"(_d), "g"(_e), "g"(_f) /* inputs */
- );
-
- __asm__ volatile
- --- 600,606 ----
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(_b), "r"(_c), "r"(_d), "r"(_e), "r"(_f) /* inputs */
- );
-
- __asm__ volatile
- ***************
- *** 610,616 ****
- trap #14;
- addw #14,sp "
- : "=r"(retvalue) /* outputs */
- ! : "r"(n), "g"(_a) /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- return retvalue;
- --- 610,616 ----
- trap #14;
- addw #14,sp "
- : "=r"(retvalue) /* outputs */
- ! : "r"(n), "r"(_a) /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- return retvalue;
- ***************
- *** 619,627 ****
- long trap_14_wlll(short n, long a, long b, long c)
- {
- register long retvalue __asm__("d0");
- ! long _a = (long) (a);
- ! long _b = (long) (b);
- ! long _c = (long) (c);
-
- __asm__ volatile
- ("
- --- 619,627 ----
- long trap_14_wlll(short n, long a, long b, long c)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
- ! long _b = (b);
- ! long _c = (c);
-
- __asm__ volatile
- ("
- ***************
- *** 641,650 ****
- long trap_14_wllww(short n, long a, long b, short c, short d)
- {
- register long retvalue __asm__("d0");
- ! volatile long _a = (volatile long) (a);
- ! volatile long _b = (volatile long) (b);
- ! volatile short _c = (volatile short)(c);
- ! volatile short _d = (volatile short)(d);
-
- __asm__ volatile
- ("
- --- 641,650 ----
- long trap_14_wllww(short n, long a, long b, short c, short d)
- {
- register long retvalue __asm__("d0");
- ! long _a = (a);
- ! long _b = (b);
- ! short _c = (c);
- ! short _d = (d);
-
- __asm__ volatile
- ("
- ***************
- *** 653,659 ****
- movl %1,sp@-;
- movl %0,sp@- "
- : /* outputs */
- ! : "g"(_a), "g"(_b), "g"(_c), "g"(_d) /* inputs */
- );
-
- __asm__ volatile
- --- 653,659 ----
- movl %1,sp@-;
- movl %0,sp@- "
- : /* outputs */
- ! : "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs */
- );
-
- __asm__ volatile
- ***************
- *** 671,680 ****
- long trap_14_wwwwl(short n, short a, short b, short c, long d)
- {
- register long retvalue __asm__("d0");
- ! volatile short _a = (volatile short)(a);
- ! volatile short _b = (volatile short)(b);
- ! volatile short _c = (volatile short)(c);
- ! volatile long _d = (volatile long) (d);
-
- __asm__ volatile
- ("
- --- 671,680 ----
- long trap_14_wwwwl(short n, short a, short b, short c, long d)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! short _b = (b);
- ! short _c = (c);
- ! long _d = (d);
-
- __asm__ volatile
- ("
- ***************
- *** 683,689 ****
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "g"(_a), "g"(_b), "g"(_c), "g"(_d) /* inputs */
- );
-
- __asm__ volatile
- --- 683,689 ----
- movw %1,sp@-;
- movw %0,sp@- "
- : /* outputs */
- ! : "r"(_a), "r"(_b), "r"(_c), "r"(_d) /* inputs */
- );
-
- __asm__ volatile
- ***************
- *** 702,710 ****
- long trap_14_wwwl(short n, short a, short b, long c)
- {
- register long retvalue __asm__("d0");
- ! volatile short _a = (volatile short)(a);
- ! volatile short _b = (volatile short)(b);
- ! volatile long _c = (volatile long)(c);
-
- __asm__ volatile
- ("
- --- 702,710 ----
- long trap_14_wwwl(short n, short a, short b, long c)
- {
- register long retvalue __asm__("d0");
- ! short _a = (a);
- ! short _b = (b);
- ! long _c = (c);
-
- __asm__ volatile
- ("
- ***************
- *** 715,721 ****
- trap #14;
- addqw #6,sp "
- : "=r"(retvalue) /* outputs */
- ! : "g"(n), "r"(_a), "r"(_b), "r"(_c) /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- return retvalue;
- --- 715,721 ----
- trap #14;
- addqw #6,sp "
- : "=r"(retvalue) /* outputs */
- ! : "r"(n), "r"(_a), "r"(_b), "r"(_c) /* inputs */
- : "d0", "d1", "d2", "a0", "a1", "a2" /* clobbered regs */
- );
- return retvalue;
- *** 1.15 1991/06/23 17:07:09
- --- read.c 1992/03/22 22:00:32
- ***************
- *** 297,303 ****
- int len = 0;
- char c = thebuf[n];
-
- ! if (c > 0 && c < ' ' || c == 0x7f) {
- if (c == '\t')
- len = __col_pos - str_length(thebuf, n);
- else
- --- 297,303 ----
- int len = 0;
- char c = thebuf[n];
-
- ! if ((c > 0 && c < ' ') || (c == 0x7f)) {
- if (c == '\t')
- len = __col_pos - str_length(thebuf, n);
- else
- ***************
- *** 322,328 ****
-
- while (n--) {
- c = *p++;
- ! if (c > 0 && c < ' ' || c == 0x7f)
- if (c == '\t')
- pos = (pos | 7) + 1;
- else
- --- 322,328 ----
-
- while (n--) {
- c = *p++;
- ! if ((c > 0 && c < ' ') || (c == 0x7f))
- if (c == '\t')
- pos = (pos | 7) + 1;
- else
- *** 1.15 1991/12/26 15:53:59
- --- spawnve.c 1992/03/22 22:00:36
- ***************
- *** 118,123 ****
- --- 118,124 ----
- /* s points at the environment's copy of the args */
- /* t points at the command line copy to be put in the basepage */
-
- + cmlen = 0; /* was missing -- mmn, 92/03/10 */
- if (argv && *argv) {
- t++;
- while (*++argv) {
- *** 1.14 1992/03/06 19:19:47
- --- system.c 1992/03/22 22:00:43
- ***************
- *** 82,88 ****
- const char *s;
- {
- Argentry *cur, *res;
- ! char buf[BUFSIZ];
- char *t, quote;
-
- res = cur = _argalloc("");
- --- 82,92 ----
- const char *s;
- {
- Argentry *cur, *res;
- ! #ifdef __SOZOBON__ /* This is actually the legal way, */
- ! char buf[1024];
- ! #else
- ! char buf[BUFSIZ]; /* because this features a cast. */
- ! #endif
- char *t, quote;
-
- res = cur = _argalloc("");
- *** 1.3 1991/06/11 14:56:53
- --- textio.c 1992/03/22 22:00:44
- ***************
- *** 42,48 ****
- char *from;
- int nbytes;
- {
- ! char buf[BUFSIZ+2], *to, c;
- int w, r, bytes_written;
-
- bytes_written = 0;
- --- 42,53 ----
- char *from;
- int nbytes;
- {
- ! #ifdef __SOZOBON__
- ! char buf[1024+2];
- ! #else
- ! char buf[BUFSIZ+2];
- ! #endif
- ! char *to, c;
- int w, r, bytes_written;
-
- bytes_written = 0;
-