Cleanup and clarify the comments above switch_trampoline().

This commit is contained in:
John Baldwin 2001-02-22 15:06:19 +00:00
parent bb1f93d519
commit 3621af321e

View File

@ -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