Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/sh3/sh3 Pullup revision 1.16 (approved by thor...



details:   https://anonhg.NetBSD.org/src/rev/87390982797c
branches:  netbsd-1-5
changeset: 489137:87390982797c
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Aug 18 10:47:39 2000 +0000

description:
Pullup revision 1.16 (approved by thorpej):

        fix a byte-order bug.
        (2nd argument of SYS___syscall(code, ...) is quad alignmented.
        On little endian mode, 1st argument is not r5 but r4).

diffstat:

 sys/arch/sh3/sh3/trap.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r d172ebc77918 -r 87390982797c sys/arch/sh3/sh3/trap.c
--- a/sys/arch/sh3/sh3/trap.c   Fri Aug 18 06:38:45 2000 +0000
+++ b/sys/arch/sh3/sh3/trap.c   Fri Aug 18 10:47:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.14 2000/06/07 11:34:17 tsubai Exp $ */
+/*     $NetBSD: trap.c,v 1.14.2.1 2000/08/18 10:47:39 msaitoh Exp $    */
 
 /*-
  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
@@ -454,7 +454,12 @@
                 */
                if (callp != sysent)
                        break;
-               code = frame->tf_r5; /* fuword(params + _QUAD_LOWWORD * sizeof(int)); */
+               /* fuword(params + _QUAD_LOWWORD * sizeof(int)); */
+#if _BYTE_ORDER == BIG_ENDIAN
+               code = frame->tf_r5;
+#else
+               code = frame->tf_r4;
+#endif
                /* params += sizeof(quad_t); */
                break;
        default:



Home | Main Index | Thread Index | Old Index