Skip to content

Commit

Permalink
allocator: Improve MIPS coverage of spinlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
klzgrad committed Mar 30, 2022
1 parent 61512a2 commit 1894111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/allocator/partition_allocator/yield_processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1894111

Please sign in to comment.