patch-2.4.23 linux-2.4.23/include/asm-ia64/sn/bte.h
Next file: linux-2.4.23/include/asm-ia64/sn/cdl.h
Previous file: linux-2.4.23/include/asm-ia64/smp.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
2003-11-28 10:26:21.000000000 -0800
- Orig file:
linux-2.4.22/include/asm-ia64/sn/bte.h
- Orig date:
2003-08-25 04:44:43.000000000 -0700
diff -urN linux-2.4.22/include/asm-ia64/sn/bte.h linux-2.4.23/include/asm-ia64/sn/bte.h
@@ -59,6 +59,15 @@
#endif /* BTE_DEBUG */
+#ifndef L1_CACHE_MASK
+#define L1_CACHE_MASK (L1_CACHE_BYTES - 1)
+#endif
+
+#ifndef L1_CACHE_ALIGNED
+#define L1_CACHE_ALIGNED(_p) (((u64)(_p) & L1_CACHE_MASK) == 0)
+#endif
+
+
/* BTE status register only supports 16 bits for length field */
#define BTE_LEN_BITS (16)
#define BTE_LEN_MASK ((1 << BTE_LEN_BITS) - 1)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)