summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-26 23:32:38 +0000
committerjhb <jhb@FreeBSD.org>2001-01-26 23:32:38 +0000
commit17984f33e4584d275d877751d861a05e325e89bb (patch)
treed6722b23bed0cfa28f778e28c37135108ee5eccb
parent2bfb47ed1d819886aa3fe07d8444df83f7b66174 (diff)
downloadFreeBSD-src-17984f33e4584d275d877751d861a05e325e89bb.zip
FreeBSD-src-17984f33e4584d275d877751d861a05e325e89bb.tar.gz
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.
-rw-r--r--sys/alpha/alpha/vm_machdep.c4
-rw-r--r--sys/powerpc/aim/vm_machdep.c4
-rw-r--r--sys/powerpc/powerpc/vm_machdep.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/alpha/alpha/vm_machdep.c b/sys/alpha/alpha/vm_machdep.c
index c5c8cd5..6d96337 100644
--- a/sys/alpha/alpha/vm_machdep.c
+++ b/sys/alpha/alpha/vm_machdep.c
@@ -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 */
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c
index c5c8cd5..6d96337 100644
--- a/sys/powerpc/aim/vm_machdep.c
+++ b/sys/powerpc/aim/vm_machdep.c
@@ -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 */
diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c
index c5c8cd5..6d96337 100644
--- a/sys/powerpc/powerpc/vm_machdep.c
+++ b/sys/powerpc/powerpc/vm_machdep.c
@@ -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 */
OpenPOWER on IntegriCloud