Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915 Use unsigned to avoid un...



details:   https://anonhg.NetBSD.org/src/rev/04387ad56f36
branches:  trunk
changeset: 965779:04387ad56f36
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Oct 01 18:41:58 2019 +0000

description:
Use unsigned to avoid undefined behavior in g4x_update_wm().

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_reg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c8019149db9d -r 04387ad56f36 sys/external/bsd/drm2/dist/drm/i915/i915_reg.h
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_reg.h    Tue Oct 01 18:00:07 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_reg.h    Tue Oct 01 18:41:58 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_reg.h,v 1.11 2019/09/03 15:05:40 msaitoh Exp $    */
+/*     $NetBSD: i915_reg.h,v 1.12 2019/10/01 18:41:58 msaitoh Exp $    */
 
 /* Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
  * All Rights Reserved.
@@ -4609,7 +4609,7 @@
 #define   DSPFW_SPRITEA_MASK           (0x7f<<0) /* g4x */
 #define   DSPFW_SPRITEA_MASK_VLV       (0xff<<0) /* vlv/chv */
 #define DSPFW3                 (dev_priv->info.display_mmio_offset + 0x7003c)
-#define   DSPFW_HPLL_SR_EN             (1<<31)
+#define   DSPFW_HPLL_SR_EN             (1U<<31)
 #define   PINEVIEW_SELF_REFRESH_EN     (1<<30)
 #define   DSPFW_CURSOR_SR_SHIFT                24
 #define   DSPFW_CURSOR_SR_MASK         (0x3f<<24)



Home | Main Index | Thread Index | Old Index