Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47633cf0 authored by Robin Holt's avatar Robin Holt Committed by Tony Luck
Browse files

[IA64] fix up bte.h



bte.h expects a #define of L1_CACHE_MASK which is currently only
in bte.c.  This small patch gets bte.h to include cleanly and makes
BTE_UNALIGNED_COPY not report errors.

Signed-off-by: default avatarRobin Holt <holt@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 4611a771
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -224,8 +224,9 @@ extern void bte_error_handler(unsigned long);
 * version of bte_copy, you must perform this check yourself.
 */
#define BTE_UNALIGNED_COPY(src, dest, len, mode)			\
	(((len & L1_CACHE_MASK) || (src & L1_CACHE_MASK) ||             \
	  (dest & L1_CACHE_MASK)) ?                                     \
	(((len & (L1_CACHE_BYTES - 1)) ||				\
	  (src & (L1_CACHE_BYTES - 1)) ||				\
	  (dest & (L1_CACHE_BYTES - 1))) ?				\
	 bte_unaligned_copy(src, dest, len, mode) :			\
	 bte_copy(src, dest, len, mode, NULL))