Sync with i386 - set rbp reg to 0 for upcalls as a frame marker, not that
it is guaranteed to be used in userland though.
This commit is contained in:
parent
717209c708
commit
b93b95f67f
@ -314,6 +314,7 @@ cpu_set_upcall_kse(struct thread *td, struct kse_upcall *ku)
|
||||
* Set the trap frame to point at the beginning of the uts
|
||||
* function.
|
||||
*/
|
||||
td->td_frame->tf_rbp = 0;
|
||||
td->td_frame->tf_rsp =
|
||||
((register_t)ku->ku_stack.ss_sp + ku->ku_stack.ss_size) & ~0x0f;
|
||||
td->td_frame->tf_rsp -= 8;
|
||||
|
Loading…
Reference in New Issue
Block a user