From 1894111438328e798135b00b3c1b934da2438758 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 30 Nov 2019 22:38:31 +0800 Subject: [PATCH] allocator: Improve MIPS coverage of spinlocks --- src/base/allocator/partition_allocator/yield_processor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/allocator/partition_allocator/yield_processor.h b/src/base/allocator/partition_allocator/yield_processor.h index 0d987cbf14..616523b740 100644 --- a/src/base/allocator/partition_allocator/yield_processor.h +++ b/src/base/allocator/partition_allocator/yield_processor.h @@ -27,7 +27,7 @@ // architectures (first added in MIPS32r2). To avoid assembler errors when // targeting pre-r2, we must encode the instruction manually. #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 // that Chromium supports. #define PA_YIELD_PROCESSOR __asm__ __volatile__("pause")