Update some comments, s0 in the pcb of a child returning from fork1() is

now passed in as a0 to fork_exit() and and s2 is passed in as a1.
This commit is contained in:
jhb 2001-01-26 23:32:38 +00:00
parent a1a0de4a3f
commit affc1ab289
3 changed files with 6 additions and 6 deletions

View File

@ -204,10 +204,10 @@ cpu_fork(p1, p2, flags)
*/
up->u_pcb.pcb_hw.apcb_ksp = (u_int64_t)p2tf;
up->u_pcb.pcb_context[0] =
(u_int64_t)fork_return; /* s0: pc */
(u_int64_t)fork_return; /* s0: a0 */
up->u_pcb.pcb_context[1] =
(u_int64_t)exception_return; /* s1: ra */
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a0 */
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a1 */
up->u_pcb.pcb_context[7] =
(u_int64_t)switch_trampoline; /* ra: assembly magic */

View File

@ -204,10 +204,10 @@ cpu_fork(p1, p2, flags)
*/
up->u_pcb.pcb_hw.apcb_ksp = (u_int64_t)p2tf;
up->u_pcb.pcb_context[0] =
(u_int64_t)fork_return; /* s0: pc */
(u_int64_t)fork_return; /* s0: a0 */
up->u_pcb.pcb_context[1] =
(u_int64_t)exception_return; /* s1: ra */
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a0 */
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a1 */
up->u_pcb.pcb_context[7] =
(u_int64_t)switch_trampoline; /* ra: assembly magic */

View File

@ -204,10 +204,10 @@ cpu_fork(p1, p2, flags)
*/
up->u_pcb.pcb_hw.apcb_ksp = (u_int64_t)p2tf;
up->u_pcb.pcb_context[0] =
(u_int64_t)fork_return; /* s0: pc */
(u_int64_t)fork_return; /* s0: a0 */
up->u_pcb.pcb_context[1] =
(u_int64_t)exception_return; /* s1: ra */
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a0 */
up->u_pcb.pcb_context[2] = (u_long) p2; /* s2: a1 */
up->u_pcb.pcb_context[7] =
(u_int64_t)switch_trampoline; /* ra: assembly magic */