Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops | Module Name: syssrc



details:   https://anonhg.NetBSD.org/src/rev/d224a06750ed
branches:  trunk
changeset: 521926:d224a06750ed
user:      uch <uch%NetBSD.org@localhost>
date:      Fri Feb 08 14:55:23 2002 +0000

description:
| Module Name:  syssrc
 | Committed By:        uwe
 | Date:                Thu Jan 31 11:18:08 UTC 2002
 |
 | Modified Files:
 |      syssrc/sys/dev/rasops: rasops8.c
 |
 | Log Message:
 | Honor RI_BSWAP.

Endian fix.

diffstat:

 sys/dev/rasops/rasops8.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r a678fbe5bcf4 -r d224a06750ed sys/dev/rasops/rasops8.c
--- a/sys/dev/rasops/rasops8.c  Fri Feb 08 13:32:32 2002 +0000
+++ b/sys/dev/rasops/rasops8.c  Fri Feb 08 14:55:23 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops8.c,v 1.14 2002/01/31 11:18:07 uwe Exp $ */
+/*     $NetBSD: rasops8.c,v 1.15 2002/02/08 14:55:23 uch Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.14 2002/01/31 11:18:07 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.15 2002/02/08 14:55:23 uch Exp $");
 
 #include "opt_rasops.h"
 
@@ -200,7 +200,11 @@
                stamp[i] |= ((i & 4 ? fg : bg) << 16);
                stamp[i] |= ((i & 8 ? fg : bg) << 24);
 #endif
+#if BYTE_ORDER == LITTLE_ENDIAN
+               if ((ri->ri_flg & RI_BSWAP) == 0)
+#else
                if ((ri->ri_flg & RI_BSWAP) != 0)
+#endif
                        stamp[i] = bswap32(stamp[i]);
        }
 }



Home | Main Index | Thread Index | Old Index