From a6185d4b050c9487fb70b5b8f5c26fe9ede16a3a Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 16 Aug 2004 22:57:13 +0000 Subject: [PATCH] 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. --- sys/amd64/amd64/vm_machdep.c | 1 + 1 file changed, 1 insertion(+) 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;