Skip to content
Merged
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
4 changes: 3 additions & 1 deletion runtime/jmpbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ typedef void *jmpbuf[JMPBUF_SIZE];

#if defined __i386__ || defined __x86_64__
// We use an otherwise unused entry in the jmpbuf to store MXCSR
#define JMPBUF_MXCSR(ctx) (ctx)[3]
// [0], [1], [2] hold fp, pc, sp.
// When cf-protection is enabled, [3] holds the shadow stack.
#define JMPBUF_MXCSR(ctx) (ctx)[4]
/**
* @brief Get MXCSR from jump buffer in__cilkrts_stack_frame. X86 and X86_64
* only.
Expand Down
Loading