aboutsummaryrefslogtreecommitdiff
path: root/src/common/common_funcs.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-11-10 17:11:27 -0800
committerGitHub <noreply@github.com>2022-11-10 17:11:27 -0800
commitd05b183f2118a5e2c919c35023549f30201bdd7c (patch)
tree082cf6bb2e372c3233872b836fa96bdc0c25f279 /src/common/common_funcs.h
parent83eb9cf7dabc7685215b423ffae9a650fa9a3f50 (diff)
parentcbaf642ffe4b05f8796798ebdc5c6892605928cc (diff)
Merge pull request #9198 from liamwhite/arm64
Initial ARM64 support
Diffstat (limited to 'src/common/common_funcs.h')
-rw-r--r--src/common/common_funcs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h
index e1e2a90fc6..0dad9338ac 100644
--- a/src/common/common_funcs.h
+++ b/src/common/common_funcs.h
@@ -31,8 +31,10 @@
#ifndef _MSC_VER
-#ifdef ARCHITECTURE_x86_64
+#if defined(ARCHITECTURE_x86_64)
#define Crash() __asm__ __volatile__("int $3")
+#elif defined(ARCHITECTURE_arm64)
+#define Crash() __asm__ __volatile__("brk #0")
#else
#define Crash() exit(1)
#endif