summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-01-17 18:56:06 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-01-17 18:56:06 +0000
commit3bba4c9222c4f8fbba9d102b0f2e7913c2036343 (patch)
tree5015eb260d579ffc64597d60e33812c4579e96db
parente6ab9cc9eef66bc301f32d55affe9c57453fa820 (diff)
casts so this compiles on i386.
ok reyk
-rw-r--r--sys/dev/pci/if_myxreg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_myxreg.h b/sys/dev/pci/if_myxreg.h
index ae6acf9a20d..c145b8df7a4 100644
--- a/sys/dev/pci/if_myxreg.h
+++ b/sys/dev/pci/if_myxreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_myxreg.h,v 1.2 2007/06/01 18:07:08 reyk Exp $ */
+/* $OpenBSD: if_myxreg.h,v 1.3 2008/01/17 18:56:05 thib Exp $ */
/*
* Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org>
@@ -39,8 +39,8 @@
#define MYXALIGN_CMD 64
#define MYXALIGN_DATA PAGE_SIZE
-#define MYX_ADDRHIGH(_v) ((_v >> 32) & 0xffffffff)
-#define MYX_ADDRLOW(_v) (_v & 0xffffffff)
+#define MYX_ADDRHIGH(_v) (((u_int64_t)_v >> 32) & 0xffffffff)
+#define MYX_ADDRLOW(_v) ((u_int64_t)_v & 0xffffffff)
/*
* PCI memory/register layout