mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Fix stack offset to allow gcc's stack aligment code to work correctly.
MFC after: 3 days
This commit is contained in:
parent
1e70cd7fc7
commit
fc643048fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156522
@ -464,7 +464,7 @@ cpu_set_upcall_kse(struct thread *td, void (*entry)(void *), void *arg,
|
||||
*/
|
||||
td->td_frame->tf_ebp = 0;
|
||||
td->td_frame->tf_esp =
|
||||
(int)stack->ss_sp + stack->ss_size - 16;
|
||||
(((int)stack->ss_sp + stack->ss_size - 4) & ~0x0f) - 4;
|
||||
td->td_frame->tf_eip = (int)entry;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user