svn commit: r209346 - in projects/ppc64/sys/powerpc: aim booke powerpc

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat Jun 19 17:28:35 UTC 2010


Author: nwhitehorn
Date: Sat Jun 19 17:28:35 2010
New Revision: 209346
URL: http://svn.freebsd.org/changeset/base/209346

Log:
  Moved cpu_thread_swapin/out() back to booke/aim dependent vm_machdep.c,
  since they relate to VM operations and could be used to optimize KVA
  use of the SLB on 64-bit AIM.

Modified:
  projects/ppc64/sys/powerpc/aim/vm_machdep.c
  projects/ppc64/sys/powerpc/booke/vm_machdep.c
  projects/ppc64/sys/powerpc/powerpc/exec_machdep.c

Modified: projects/ppc64/sys/powerpc/aim/vm_machdep.c
==============================================================================
--- projects/ppc64/sys/powerpc/aim/vm_machdep.c	Sat Jun 19 17:21:48 2010	(r209345)
+++ projects/ppc64/sys/powerpc/aim/vm_machdep.c	Sat Jun 19 17:28:35 2010	(r209346)
@@ -396,3 +396,19 @@ is_physical_memory(addr)
 	return 1;
 }
 
+/*
+ * CPU threading functions related to the VM layer. These could be used
+ * to map the SLB bits required for the kernel stack instead of forcing a
+ * fixed-size KVA.
+ */
+
+void
+cpu_thread_swapin(struct thread *td)
+{
+}
+
+void
+cpu_thread_swapout(struct thread *td)
+{
+}
+

Modified: projects/ppc64/sys/powerpc/booke/vm_machdep.c
==============================================================================
--- projects/ppc64/sys/powerpc/booke/vm_machdep.c	Sat Jun 19 17:21:48 2010	(r209345)
+++ projects/ppc64/sys/powerpc/booke/vm_machdep.c	Sat Jun 19 17:28:35 2010	(r209346)
@@ -379,3 +379,17 @@ is_physical_memory(vm_offset_t addr)
 	return (1);
 }
 
+/*
+ * CPU threading functions related to VM.
+ */
+
+void
+cpu_thread_swapin(struct thread *td)
+{
+}
+
+void
+cpu_thread_swapout(struct thread *td)
+{
+}
+

Modified: projects/ppc64/sys/powerpc/powerpc/exec_machdep.c
==============================================================================
--- projects/ppc64/sys/powerpc/powerpc/exec_machdep.c	Sat Jun 19 17:21:48 2010	(r209345)
+++ projects/ppc64/sys/powerpc/powerpc/exec_machdep.c	Sat Jun 19 17:28:35 2010	(r209346)
@@ -940,16 +940,6 @@ cpu_thread_free(struct thread *td)
 {
 }
 
-void
-cpu_thread_swapin(struct thread *td)
-{
-}
-
-void
-cpu_thread_swapout(struct thread *td)
-{
-}
-
 int
 cpu_set_user_tls(struct thread *td, void *tls_base)
 {


More information about the svn-src-projects mailing list