aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/aim/swtch.S
diff options
context:
space:
mode:
authorBenno Rice <benno@FreeBSD.org>2002-02-28 03:24:07 +0000
committerBenno Rice <benno@FreeBSD.org>2002-02-28 03:24:07 +0000
commit4eed0cf1be7eded41730bb71f1809e09b5a0890b (patch)
treeb7f558b1545ed5a0d8ad186ce6dba3e85f00a3dc /sys/powerpc/aim/swtch.S
parent183439a14a406af3ff654a170c7cb90a418e12eb (diff)
Notes
Diffstat (limited to 'sys/powerpc/aim/swtch.S')
-rw-r--r--sys/powerpc/aim/swtch.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/powerpc/aim/swtch.S b/sys/powerpc/aim/swtch.S
index 00bdbb34a2c46..828c6cd55ded2 100644
--- a/sys/powerpc/aim/swtch.S
+++ b/sys/powerpc/aim/swtch.S
@@ -121,3 +121,14 @@ ENTRY(savectx)
mfcr %r4 /* Save the condition register */
stw %r4,PCB_CONTEXT(%r3)
blr
+
+/*
+ * fork_trampoline()
+ * Set up the return from cpu_fork()
+ */
+ENTRY(fork_trampoline)
+ lwz %r3,CF_FUNC(1)
+ lwz %r4,CF_ARG0(1)
+ lwz %r5,CF_ARG1(1)
+ bl fork_exit
+ rfi