patch-2.3.99-pre8 linux/include/asm-s390/misc390.h

Next file: linux/include/asm-s390/mman.h
Previous file: linux/include/asm-s390/mathemu.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre7/linux/include/asm-s390/misc390.h linux/include/asm-s390/misc390.h
@@ -0,0 +1,14 @@
+/*
+ *  include/asm-s390/misc390.h
+ *
+ *  S390 version
+ *    Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
+ *    Author(s): Denis Joseph Barrow ([email protected],[email protected])
+ */
+
+#define	allocaligned2(type,name,number,align)				\
+   __u8	name##buff[(sizeof(type)*(number+1))-1]; 	                \
+   type	*name=(type *)(((__u32)(&name##buff[align-1]))&(-align))
+
+#define	allocaligned(type,name,number)  allocaligned2(type,name,number,__alignof__(type))
+

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])