Skip to content

Commit

Permalink
Fix the osx arm64 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Feb 5, 2021
1 parent f708c85 commit 9c76789
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mono/mono/utils/mono-sigcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@ typedef struct ucontext {
#else
#define UCONTEXT_REG_PC(ctx) (((ucontext64_t*)(ctx))->uc_mcontext64->__ss.__pc)
#define UCONTEXT_REG_SP(ctx) (((ucontext64_t*)(ctx))->uc_mcontext64->__ss.__sp)
#define UCONTEXT_REG_SET_PC(ctx, val) do { \
UCONTEXT_REG_PC (ctx) = (__uint64_t)(val); \
} while (0)
#endif

#define UCONTEXT_REG_R0(ctx) (((ucontext64_t*)(ctx))->uc_mcontext64->__ss.__x [ARMREG_R0])
Expand All @@ -497,6 +500,8 @@ typedef struct ucontext {
#define UCONTEXT_REG_SET_PC(ctx, val) do { \
UCONTEXT_REG_PC (ctx) = (val); \
} while (0)
#endif
#ifndef UCONTEXT_REG_SET_SP
#define UCONTEXT_REG_SET_SP(ctx, val) do { \
UCONTEXT_REG_SP (ctx) = (val); \
} while (0)
Expand Down

0 comments on commit 9c76789

Please sign in to comment.