From 3621af321eeba22fee72c39d92b72a32c031e3a6 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Thu, 22 Feb 2001 15:06:19 +0000 Subject: [PATCH] Cleanup and clarify the comments above switch_trampoline(). --- sys/alpha/alpha/swtch.s | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/alpha/alpha/swtch.s b/sys/alpha/alpha/swtch.s index 5c7ce009cda..63443530f0d 100644 --- a/sys/alpha/alpha/swtch.s +++ b/sys/alpha/alpha/swtch.s @@ -198,8 +198,11 @@ Lcs7: * Arrange for a function to be invoked neatly, after a cpu_switch(). * * Invokes fork_exit() passing in three arguments: a callout function, - * a pointer to the executing process's proc structure, and a trapframe - * pointer. + * an argument to the callout, and a trapframe pointer. For child processes + * returning from fork(2), the argument is a pointer to the child process. + * + * The callout function is in s0, the address to return to after executing + * fork_exit() is in s1, and the argument is in s2. */ LEAF(switch_trampoline, 0) mov s1, ra