diff options
author | jhb <jhb@FreeBSD.org> | 2001-02-22 15:06:19 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-02-22 15:06:19 +0000 |
commit | 202f41c3e5a85122c502f9a1c24da4fc2e7213fa (patch) | |
tree | cd43d6da1eac4fbf8373a57bf67b18a9ae1c948d /sys | |
parent | 2d99511f433f3a79c0ffc26941d5fa76d13bac90 (diff) | |
download | FreeBSD-src-202f41c3e5a85122c502f9a1c24da4fc2e7213fa.zip FreeBSD-src-202f41c3e5a85122c502f9a1c24da4fc2e7213fa.tar.gz |
Cleanup and clarify the comments above switch_trampoline().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/alpha/alpha/swtch.s | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/alpha/alpha/swtch.s b/sys/alpha/alpha/swtch.s index 5c7ce00..6344353 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 |