summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authoruch <uch@NetBSD.org>2002-02-08 14:55:23 +0000
committeruch <uch@NetBSD.org>2002-02-08 14:55:23 +0000
commit5e1dc96b6e531b9932b9d36cb0d69c1af2e464cb (patch)
treec5aa1a0dae4815697641851bd4cd28565a8f9981 /sys/dev
parent85cc2d10d57b7404f0e9b4bdc60157e660cba454 (diff)
| 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 (limited to 'sys/dev')
-rw-r--r--sys/dev/rasops/rasops8.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/rasops/rasops8.c b/sys/dev/rasops/rasops8.c
index d96e85941ec..b2e337dd8eb 100644
--- a/sys/dev/rasops/rasops8.c
+++ b/sys/dev/rasops/rasops8.c
@@ -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 @@ rasops8_makestamp(ri, attr)
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]);
}
}