0005-third-party-pdfium.patch 658 B

12345678910111213
  1. diff --git a/third_party/base/allocator/partition_allocator/spin_lock.cc b/third_party/base/allocator/partition_allocator/spin_lock.cc
  2. index d7cdd15e2..ab9182608 100644
  3. --- a/third_party/base/allocator/partition_allocator/spin_lock.cc
  4. +++ b/third_party/base/allocator/partition_allocator/spin_lock.cc
  5. @@ -45,6 +45,8 @@
  6. #define YIELD_PROCESSOR __asm__ __volatile__("pause")
  7. #elif defined(ARCH_CPU_PPC64_FAMILY)
  8. #define YIELD_PROCESSOR __asm__ __volatile__("or 31,31,31")
  9. +#elif defined(ARCH_CPU_RISCV_FAMILY)
  10. +#define YIELD_PROCESSOR __asm__ __volatile__("FENCE")
  11. #elif defined(ARCH_CPU_S390_FAMILY)
  12. // just do nothing
  13. #define YIELD_PROCESSOR ((void)0)