summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64/mipsregs.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-10-02 20:44:46 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-10-02 20:44:46 +0000
commit269ef0b8beaf5f3672030f4ac67de66e4a591c9b (patch)
treee3d250106f9ef797493253e6a9c534a2916ca7f1 /include/asm-mips64/mipsregs.h
parent09d3668abd8d74f2abc98bca87974108ad6798df (diff)
Delete load_linked / store_conditional.
Diffstat (limited to 'include/asm-mips64/mipsregs.h')
-rw-r--r--include/asm-mips64/mipsregs.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/include/asm-mips64/mipsregs.h b/include/asm-mips64/mipsregs.h
index 08ef50e35..7a9f12cc8 100644
--- a/include/asm-mips64/mipsregs.h
+++ b/include/asm-mips64/mipsregs.h
@@ -165,42 +165,6 @@ __BUILD_SET_CP0(config,CP0_CONFIG)
#endif /* defined (_LANGUAGE_ASSEMBLY) */
/*
- * Inline code for use of the ll and sc instructions
- *
- * FIXME: This instruction is only available on MIPS ISA >=2.
- * Since these operations are only being used for atomic operations
- * the easiest workaround for the R[23]00 is to disable interrupts.
- * This fails for R3000 SMP machines which use that many different
- * technologies as replacement that it is difficult to create even
- * just a hook for for all machines to hook into. The only good
- * thing is that there is currently no R3000 SMP machine on the
- * Linux/MIPS target list ...
- */
-#define load_linked(addr) \
-({ \
- unsigned int __res; \
- \
- __asm__ __volatile__( \
- "ll\t%0,(%1)" \
- : "=r" (__res) \
- : "r" ((unsigned long) (addr))); \
- \
- __res; \
-})
-
-#define store_conditional(addr,value) \
-({ \
- int __res; \
- \
- __asm__ __volatile__( \
- "sc\t%0,(%2)" \
- : "=r" (__res) \
- : "0" (value), "r" (addr)); \
- \
- __res; \
-})
-
-/*
* Bitfields in the R4xx0 cp0 status register
*/
#define ST0_IE 0x00000001