summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2002-07-09 12:57:23 +0000
committerbenno <benno@FreeBSD.org>2002-07-09 12:57:23 +0000
commit3b1e5e1a741414c5de68c34b12263bfe5b766e2d (patch)
tree77d98803a2b6d904c82dfc6c6811d6363d0abd2a /sys/powerpc/aim
parente53166ffd0587a89895076b2733e457ee9fedebd (diff)
downloadFreeBSD-src-3b1e5e1a741414c5de68c34b12263bfe5b766e2d.zip
FreeBSD-src-3b1e5e1a741414c5de68c34b12263bfe5b766e2d.tar.gz
Changes for KSE3.
Submitted by: Peter Grehan <peterg@ptree32.com.au>
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r--sys/powerpc/aim/swtch.S2
-rw-r--r--sys/powerpc/aim/vm_machdep.c53
2 files changed, 55 insertions, 0 deletions
diff --git a/sys/powerpc/aim/swtch.S b/sys/powerpc/aim/swtch.S
index e02367a..cf82169 100644
--- a/sys/powerpc/aim/swtch.S
+++ b/sys/powerpc/aim/swtch.S
@@ -121,6 +121,8 @@ ENTRY(cpu_switch)
/* thread to restore is in r3 */
.L2:
+ li %r15,TDS_RUNNING
+ stw %r15,TD_STATE(%r3) /* Set KSE state */
lwz %r3, TD_PCB(%r3)
lmw %r12,PCB_CONTEXT(%r3) /* Load the non-volatile GP regs */
mr %r2,%r12
diff --git a/sys/powerpc/aim/vm_machdep.c b/sys/powerpc/aim/vm_machdep.c
index fe9cab7..7a9074d 100644
--- a/sys/powerpc/aim/vm_machdep.c
+++ b/sys/powerpc/aim/vm_machdep.c
@@ -351,3 +351,56 @@ is_physical_memory(addr)
return 1;
}
+
+/*
+ * KSE functions
+ */
+void
+cpu_thread_exit(struct thread *td)
+{
+
+ return;
+}
+
+void
+cpu_thread_setup(struct thread *td)
+{
+
+ return;
+}
+
+void
+cpu_save_upcall(struct thread *td, struct kse *newkse)
+{
+
+ return;
+}
+
+void
+cpu_set_upcall(struct thread *td, void *pcb)
+{
+
+ return;
+}
+
+void
+cpu_set_args(struct thread *td, struct kse *ke)
+{
+
+ return;
+}
+
+void
+cpu_free_kse_mdstorage(struct kse *ke)
+{
+
+ return;
+}
+
+int
+cpu_export_context(struct thread *td)
+{
+
+ return (0);
+}
+
OpenPOWER on IntegriCloud