From 3fcaad585ad4cb071401f3d1a9890547d24a966c Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 10 Jun 2023 16:32:00 +0800 Subject: [PATCH] ; Update Android port * src/keyboard.c (handle_input_available_signal): Don't generate instructions not available in arm mode. --- src/keyboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/keyboard.c b/src/keyboard.c index eea37fa833f..169756d9f2f 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -7990,11 +7990,11 @@ handle_input_available_signal (int sig) /* Make all writes from the Android UI thread visible. If `android_urgent_query' has been set, preceding writes to query related variables should become observable here on as well. */ -#if defined __aarch64__ || defined __arm__ +#if defined __aarch64__ asm ("dmb ishst"); -#else /* defined __aarch64__ || defined __arm__ */ +#else /* !defined __aarch64__ */ __atomic_thread_fence (__ATOMIC_SEQ_CST); -#endif /* !defined __aarch64__ && !defined __arm__ */ +#endif /* defined __aarch64__ */ #endif /* HAVE_ANDROID && !ANDROID_STUBIFY */ pending_signals = true; -- 2.39.2