0006-base-process-add-riscv64-arch-definition.patch 1.1 KB

123456789101112131415161718192021222324252627
  1. From 87a9190952f0cd3b47d55c37e6125a95028aa4a1 Mon Sep 17 00:00:00 2001
  2. From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  3. Date: Tue, 10 May 2022 02:21:16 +0000
  4. Subject: [PATCH 06/22] base: process: add riscv64 arch definition
  5. Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
  6. ---
  7. base/process/launch_posix.cc | 3 ++-
  8. 1 file changed, 2 insertions(+), 1 deletion(-)
  9. diff --git a/base/process/launch_posix.cc b/base/process/launch_posix.cc
  10. index c5eb76eba5a7c..96df11f406f41 100644
  11. --- a/base/process/launch_posix.cc
  12. +++ b/base/process/launch_posix.cc
  13. @@ -706,7 +706,8 @@ NOINLINE pid_t CloneAndLongjmpInChild(unsigned long flags,
  14. alignas(16) char stack_buf[PTHREAD_STACK_MIN];
  15. #if defined(ARCH_CPU_X86_FAMILY) || defined(ARCH_CPU_ARM_FAMILY) || \
  16. defined(ARCH_CPU_MIPS_FAMILY) || defined(ARCH_CPU_S390_FAMILY) || \
  17. - defined(ARCH_CPU_PPC64_FAMILY) || defined(ARCH_CPU_LOONG_FAMILY)
  18. + defined(ARCH_CPU_PPC64_FAMILY) || defined(ARCH_CPU_LOONG_FAMILY) || \
  19. + defined(ARCH_CPU_RISCV_FAMILY)
  20. // The stack grows downward.
  21. void* stack = stack_buf + sizeof(stack_buf);
  22. #else
  23. --
  24. 2.25.1