Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Another instance of REG_OFFSET that needs to be c...



details:   https://anonhg.NetBSD.org/src/rev/a41c6a2e3ac4
branches:  trunk
changeset: 768082:a41c6a2e3ac4
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Aug 07 20:14:42 2011 +0000

description:
Another instance of REG_OFFSET that needs to be consistent with the rest.

diffstat:

 sys/dev/ic/isacsx.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c2740e5acab9 -r a41c6a2e3ac4 sys/dev/ic/isacsx.h
--- a/sys/dev/ic/isacsx.h       Sun Aug 07 20:05:08 2011 +0000
+++ b/sys/dev/ic/isacsx.h       Sun Aug 07 20:14:42 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isacsx.h,v 1.4 2008/09/08 23:36:54 gmcgarry Exp $  */
+/* $NetBSD: isacsx.h,v 1.5 2011/08/07 20:14:42 jakllsch Exp $  */
 /*
  *   Copyright (c) 2001 Gary Jennejohn. All rights reserved.
  *
@@ -241,7 +241,7 @@
        } isacsx_rw;
 }  __packed isacsx_reg_t;
 
-#define REG_OFFSET(type, field) (int)(&(((type *)0)->field))
+#define REG_OFFSET(type, field) (uintptr_t)(&(((type *)0)->field))
 
 /* ISACSX read registers */
 



Home | Main Index | Thread Index | Old Index