mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
signal: change stack alignment
This commit is contained in:
@@ -361,7 +361,7 @@ bool signal_check(struct thread_t *thread, context_t *context, bool syscall, uin
|
|||||||
// get where in memory to put the frame
|
// get where in memory to put the frame
|
||||||
void *stack = altstack ? altstack : (void *)CTX_SP(context);
|
void *stack = altstack ? altstack : (void *)CTX_SP(context);
|
||||||
#if ARCH_SIGNAL_STACK_GROWS_DOWNWARDS == 1
|
#if ARCH_SIGNAL_STACK_GROWS_DOWNWARDS == 1
|
||||||
stack = (void *)(((uintptr_t)stack - ARCH_SIGNAL_REDZONE_SIZE - sizeof(sigframe_t)) & ~0xfl);
|
stack = (void *)((((uintptr_t)stack - ARCH_SIGNAL_REDZONE_SIZE - sizeof(sigframe_t)) & ~0xfl) - 0x8);
|
||||||
#else
|
#else
|
||||||
#error unsupported
|
#error unsupported
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user