Skip to content

Commit

Permalink
Fix registers for M1 on CogStackAligment
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Jul 8, 2022
1 parent 3e7c787 commit 52e2409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extracted/vm/include/common/sqCogStackAlignment.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
*/
# if __GNUC__
# define getfp() ({ usqIntptr_t fp; \
asm volatile ("mov x0, x29" : "=r"(x29) : ); \
asm volatile ("mov x0, fp" : "=r"(fp) : ); \
fp; })
# define getsp() ({ usqIntptr_t sp; \
asm volatile ("mov x0, sp" : "=r"(sp) : ); \
Expand Down

0 comments on commit 52e2409

Please sign in to comment.