mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-22 13:26:12 +03:00
allocator: Improve MIPS coverage of spinlocks
This commit is contained in:
parent
2d1d2354e4
commit
2f8b6f82d5
@ -31,7 +31,7 @@
|
|||||||
// architectures (first added in MIPS32r2). To avoid assembler errors when
|
// architectures (first added in MIPS32r2). To avoid assembler errors when
|
||||||
// targeting pre-r2, we must encode the instruction manually.
|
// targeting pre-r2, we must encode the instruction manually.
|
||||||
#define PA_YIELD_PROCESSOR __asm__ __volatile__(".word 0x00000140")
|
#define PA_YIELD_PROCESSOR __asm__ __volatile__(".word 0x00000140")
|
||||||
#elif defined(ARCH_CPU_MIPS64EL) && __mips_isa_rev >= 2
|
#elif defined(ARCH_CPU_MIPS_FAMILY) && __mips_isa_rev >= 2
|
||||||
// Don't bother doing using .word here since r2 is the lowest supported mips64
|
// Don't bother doing using .word here since r2 is the lowest supported mips64
|
||||||
// that Chromium supports.
|
// that Chromium supports.
|
||||||
#define PA_YIELD_PROCESSOR __asm__ __volatile__("pause")
|
#define PA_YIELD_PROCESSOR __asm__ __volatile__("pause")
|
||||||
|
Loading…
Reference in New Issue
Block a user