Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Fix byte order of stamp for big endian so tha...



details:   https://anonhg.NetBSD.org/src/rev/8ecf38927507
branches:  trunk
changeset: 962440:8ecf38927507
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Jul 21 16:18:08 2019 +0000

description:
Fix byte order of stamp for big endian so that width-optimized
putchar functions work correctly.

diffstat:

 sys/dev/rasops/rasops15.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r c64b2861f438 -r 8ecf38927507 sys/dev/rasops/rasops15.c
--- a/sys/dev/rasops/rasops15.c Sun Jul 21 16:12:59 2019 +0000
+++ b/sys/dev/rasops/rasops15.c Sun Jul 21 16:18:08 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops15.c,v 1.22 2018/12/04 09:27:59 mlelstv Exp $    */
+/*     $NetBSD: rasops15.c,v 1.23 2019/07/21 16:18:08 rin Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops15.c,v 1.22 2018/12/04 09:27:59 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops15.c,v 1.23 2019/07/21 16:18:08 rin Exp $");
 
 #include "opt_rasops.h"
 
@@ -321,10 +321,10 @@
                stamp[i + 1] = (i & 4 ? fg : bg);
                stamp[i + 1] |= ((i & 2 ? fg : bg) << 16);
 #else
-               stamp[i] = (i & 2 ? fg : bg);
-               stamp[i] |= ((i & 4 ? fg : bg) << 16);
-               stamp[i + 1] = (i & 8 ? fg : bg);
-               stamp[i + 1] |= ((i & 16 ? fg : bg) << 16);
+               stamp[i] = (i & 8 ? fg : bg);
+               stamp[i] |= ((i & 16 ? fg : bg) << 16);
+               stamp[i + 1] = (i & 2 ? fg : bg);
+               stamp[i + 1] |= ((i & 4 ? fg : bg) << 16);
 #endif
        }
 }



Home | Main Index | Thread Index | Old Index