patch-2.3.16 linux/include/asm-alpha/compiler.h
Next file: linux/include/asm-alpha/core_apecs.h
Previous file: linux/fs/umsdos/inode.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Tue Aug 31 10:50:45 1999
- Orig file:
v2.3.15/linux/include/asm-alpha/compiler.h
- Orig date:
Mon Aug 16 10:33:58 1999
diff -u --recursive --new-file v2.3.15/linux/include/asm-alpha/compiler.h linux/include/asm-alpha/compiler.h
@@ -18,6 +18,8 @@
(((unsigned long)(val) & 0xfful) << ((shift) * 8))
#define __kernel_inswl(val, shift) \
(((unsigned long)(val) & 0xfffful) << ((shift) * 8))
+#define __kernel_insql(val, shift) \
+ ((unsigned long)(val) << ((shift) * 8))
#else
#define __kernel_insbl(val, shift) \
({ unsigned long __kir; \
@@ -27,6 +29,10 @@
({ unsigned long __kir; \
__asm__("inswl %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \
__kir; })
+#define __kernel_insql(val, shift) \
+ ({ unsigned long __kir; \
+ __asm__("insql %2,%1,%0" : "=r"(__kir) : "rI"(shift), "r"(val)); \
+ __kir; })
#endif
#if 0 && (__GNUC__ > 2 || __GNUC_MINOR__ >= 92)
@@ -47,11 +53,10 @@
/*
* Beginning with EGCS 1.1, GCC defines __alpha_bwx__ when the BWX
* extension is enabled. Previous versions did not define anything
- * we could test during compilation, so allow users to tell us when
- * the compiler will DTRT.
+ * we could test during compilation -- too bad, so sad.
*/
-#if defined(HAVE_BWX) || defined(__alpha_bwx__)
+#if defined(__alpha_bwx__)
#define __kernel_ldbu(mem) (mem)
#define __kernel_ldwu(mem) (mem)
#define __kernel_stb(val,mem) ((mem) = (val))
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)