Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x68k/stand/libdos Store return value to a0 before c...



details:   https://anonhg.NetBSD.org/src/rev/991d3c90b94e
branches:  trunk
changeset: 488130:991d3c90b94e
user:      itohy <itohy%NetBSD.org@localhost>
date:      Mon Jun 19 03:43:12 2000 +0000

description:
Store return value to a0 before calling CERROR function if __SVR4_ABI__.

diffstat:

 sys/arch/x68k/stand/libdos/makedoscalls.awk |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r dbe109a71e7c -r 991d3c90b94e sys/arch/x68k/stand/libdos/makedoscalls.awk
--- a/sys/arch/x68k/stand/libdos/makedoscalls.awk       Mon Jun 19 03:42:31 2000 +0000
+++ b/sys/arch/x68k/stand/libdos/makedoscalls.awk       Mon Jun 19 03:43:12 2000 +0000
@@ -5,7 +5,7 @@
 #      written by Yasha (ITOH Yasufumi)
 #      public domain
 #
-#      $NetBSD: makedoscalls.awk,v 1.2 1999/11/11 08:14:43 itohy Exp $
+#      $NetBSD: makedoscalls.awk,v 1.3 2000/06/19 03:43:12 itohy Exp $
 
 BEGIN {
        errno_nomem = 8         # errno for "Cannot allocate memory"
@@ -228,6 +228,7 @@
        }
 
        if (svreg)      print "\tmoveml\t%sp@+,%d2-%d7/%a2-%a6"
+       if (ptrval)     print "#ifdef __SVR4_ABI__\n\tmoveal\t%d0,%a0\n#endif"
        if (opt_e) {
                if (e_strict) {
                        print "\tcmpil\t#0xffffff00,%d0"
@@ -256,9 +257,6 @@
        }
        if (super)
                print "\tjmp\t%a1@"
-       else {
-               if (ptrval)
-                       print "#ifdef __SVR4_ABI__\n\tmoveal\t%d0,%a0\n#endif"
+       else
                print "\trts"
-       }
 }



Home | Main Index | Thread Index | Old Index