head 1.2; access; symbols pkgsrc-2023Q2:1.1.0.16 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.14 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.12 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.10 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.8 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.6 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.4 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.2 pkgsrc-2021Q3-base:1.1; locks; strict; comment @// @; 1.2 date 2023.08.28.06.46.33; author nia; state dead; branches; next 1.1; commitid k5AcFtqTToSnkwCE; 1.1 date 2021.09.08.22.19.50; author nia; state Exp; branches; next ; commitid WLt8TLNOLdACBc8D; desc @@ 1.2 log @Remove www/firefox91 We were keeping this around for screen recording support, which is now supported and stable in 102 ESR. @ text @$NetBSD: patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp,v 1.1 2021/09/08 22:19:50 nia Exp $ NetBSD/aarch64 does not have the Linux-specific membarrier(2) syscall. --- js/src/jit/arm64/vixl/MozCpu-vixl.cpp.orig 2020-11-12 18:04:48.000000000 +0000 +++ js/src/jit/arm64/vixl/MozCpu-vixl.cpp @@@@ -42,6 +42,8 @@@@ # elif defined(__ANDROID__) # include # include +# elif defined(__NetBSD__) + // nothing # else # error "Missing platform-specific declarations for membarrier syscall!" # endif // __linux__ / ANDROID @@@@ -49,7 +51,11 @@@@ # include "vm/JSContext.h" // TlsContext static int membarrier(int cmd, int flags) { +#if defined(__NetBSD__) + return ENOSYS; +#else return syscall(__NR_membarrier, cmd, flags); +#endif } // These definitions come from the Linux kernel source, for kernels before 4.16 @@@@ -116,7 +122,9 @@@@ uint32_t CPU::GetCacheType() { } bool CPU::CanFlushICacheFromBackgroundThreads() { -#if defined(__aarch64__) && (defined(__linux__) || defined(__android__)) +#if defined(__NetBSD__) && defined(__aarch64__) + return false; +#elif defined(__aarch64__) && (defined(__linux__) || defined(__android__)) // On linux, check the kernel supports membarrier(2), that is, it's a kernel // above Linux 4.16 included. // @ 1.1 log @Add Firefox 91ESR as a starting point for the branch. @ text @d1 1 a1 1 $NetBSD: patch-js_src_jit_arm64_vixl_MozCpu-vixl.cpp,v 1.2 2020/11/17 16:11:06 ryoon Exp $ @