From 3bba4c9222c4f8fbba9d102b0f2e7913c2036343 Mon Sep 17 00:00:00 2001 From: "Thordur I. Bjornsson" Date: Thu, 17 Jan 2008 18:56:06 +0000 Subject: casts so this compiles on i386. ok reyk --- sys/dev/pci/if_myxreg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') 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 @@ -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 -- cgit v1.2.3