From: Wojciech Zajac Date: Wed, 28 May 2014 10:48:27 +0000 (+0200) Subject: Volatile keyword fix for MUSB reset loop. X-Git-Tag: v3.3.0~262 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/%7B%24global.css%7D?a=commitdiff_plain;h=5308df03ed797dc09260efca00a4626a34c10c3e;p=minix.git Volatile keyword fix for MUSB reset loop. --- diff --git a/drivers/usbd/include/usb/hcd_common.h b/drivers/usbd/include/usb/hcd_common.h index 44336fc00..6df67ae52 100755 --- a/drivers/usbd/include/usb/hcd_common.h +++ b/drivers/usbd/include/usb/hcd_common.h @@ -29,9 +29,9 @@ typedef unsigned short hcd_reg2; typedef unsigned char hcd_reg1; /* For register dereferencing */ -#define _HCD_REG4 hcd_reg4 * volatile -#define _HCD_REG2 hcd_reg2 * volatile -#define _HCD_REG1 hcd_reg1 * volatile +#define _HCD_REG4 volatile hcd_reg4 * +#define _HCD_REG2 volatile hcd_reg2 * +#define _HCD_REG1 volatile hcd_reg1 * /* Scalar address to dereference */ #define _HCD_ADDR(base, off) (((hcd_addr)(base))+(off))