aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/amd64/vm_machdep.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2004-08-16 22:57:13 +0000
committerPeter Wemm <peter@FreeBSD.org>2004-08-16 22:57:13 +0000
commitb93b95f67f92b856e5fef813a9fa891b215815b6 (patch)
tree23b697de3e6af00394d5b78012c0dfa8cde736be /sys/amd64/amd64/vm_machdep.c
parent717209c708b64b830f8cd4fbff7a9ef2d49d1481 (diff)
downloadsrc-b93b95f67f92b856e5fef813a9fa891b215815b6.tar.gz
src-b93b95f67f92b856e5fef813a9fa891b215815b6.zip
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.
Notes
Notes: svn path=/head/; revision=133902
Diffstat (limited to 'sys/amd64/amd64/vm_machdep.c')
-rw-r--r--sys/amd64/amd64/vm_machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c
index 512163236dbc..a33679d21549 100644
--- a/sys/amd64/amd64/vm_machdep.c
+++ b/sys/amd64/amd64/vm_machdep.c
@@ -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;