Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 851759
Collapse All | Expand All

(-)a/arch/mips/atomic_arch.h (-2 / +4 lines)
Lines 8-14 Link Here
8
static inline int a_ll(volatile int *p)
8
static inline int a_ll(volatile int *p)
9
{
9
{
10
	int v;
10
	int v;
11
#if __mips < 2
11
	/* The R5900 reports itself as MIPS III but it does not have LL/SC. */
12
#if __mips < 2 || defined(_MIPS_ARCH_R5900)
12
	__asm__ __volatile__ (
13
	__asm__ __volatile__ (
13
		".set push ; .set mips2\n\t"
14
		".set push ; .set mips2\n\t"
14
		"ll %0, %1"
15
		"ll %0, %1"
Lines 26-32 static inline int a_ll(volatile int *p) Link Here
26
static inline int a_sc(volatile int *p, int v)
27
static inline int a_sc(volatile int *p, int v)
27
{
28
{
28
	int r;
29
	int r;
29
#if __mips < 2
30
	/* The R5900 reports itself as MIPS III but it does not have LL/SC. */
31
#if __mips < 2 || defined(_MIPS_ARCH_R5900)
30
	__asm__ __volatile__ (
32
	__asm__ __volatile__ (
31
		".set push ; .set mips2\n\t"
33
		".set push ; .set mips2\n\t"
32
		"sc %0, %1"
34
		"sc %0, %1"

Return to bug 851759