Skip to content

Instantly share code, notes, and snippets.

@agentzh

agentzh/a.patch Secret

Created January 31, 2021 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agentzh/e47d4f63fd70361fa60c2a1df41cb64a to your computer and use it in GitHub Desktop.
Save agentzh/e47d4f63fd70361fa60c2a1df41cb64a to your computer and use it in GitHub Desktop.
diff --git a/runtime/regs.c b/runtime/regs.c
index 0d4536f54..b21bdb2c3 100644
--- a/runtime/regs.c
+++ b/runtime/regs.c
@@ -59,7 +59,7 @@ static long _stp_get_sp(struct pt_regs *regs)
#endif /* __x86_64__ */
-#if defined(__x86_64__) || defined(__ia64__) || defined(__i386__)
+#if defined(__x86_64__) || defined(__ia64__) || defined(__i386__) || defined(__aarch64__)
/* Ensure that the upper 32 bits of val are a sign-extension of the lower 32. */
static int64_t __stp_sign_extend32(int64_t val)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment