Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the osx arm64 build. #47891

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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