PERFORCE change 75366 for review

David Xu davidxu at FreeBSD.org
Sun Apr 17 03:42:41 PDT 2005


http://perforce.freebsd.org/chv.cgi?CH=75366

Change 75366 by davidxu at davidxu_alona on 2005/04/17 10:42:05

	Implement cpu_set_user_tls for sparc64.

Affected files ...

.. //depot/projects/davidxu_thread/src/sys/sparc64/sparc64/vm_machdep.c#6 edit

Differences ...

==== //depot/projects/davidxu_thread/src/sys/sparc64/sparc64/vm_machdep.c#6 (text+ko) ====

@@ -194,6 +194,15 @@
 	td->td_retval[1] = tf->tf_out[1];
 }
 
+void
+cpu_set_user_tls(struct thread *td, void *tls_base, size_t tls_size,
+        int tls_seg __unused)
+{
+	if (td == curthread)
+		flushw();
+	td->td_frame->tf_global[7] = tls_base;
+}
+
 /*
  * Finish a fork operation, with process p2 nearly set up.
  * Copy and update the pcb, set up the stack so that the child


More information about the p4-projects mailing list