diff --git a/sys/alpha/alpha/swtch.s b/sys/alpha/alpha/swtch.s index 5c7ce009cda6..63443530f0d7 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