PERFORCE change 28269 for review

Marcel Moolenaar marcel at FreeBSD.org
Sat Apr 5 15:18:18 PST 2003


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

Change 28269 by marcel at marcel_nfs on 2003/04/05 15:17:36

	Adopt the new cpu_switch() where the old and new threads are
	being passed in. We will probably end up with a C version for
	cpu_switch() that will call swapctx(), where swapctx() will
	take pointers to PCBs. In combination with savectx() and
	restorectx() this mirrors the system calls we have and limits
	the amount of tedious assembly that has to be written and
	maintained.

Affected files ...

.. //depot/projects/ia64_epc/sys/kern/kern_synch.c#7 edit
.. //depot/projects/ia64_epc/sys/sys/proc.h#5 edit

Differences ...

==== //depot/projects/ia64_epc/sys/kern/kern_synch.c#7 (text+ko) ====

@@ -516,7 +516,7 @@
 		thread_switchout(td);
 	sched_switchout(td);
 
-#if defined(__i386__) || defined(__sparc64__)
+#if defined(__i386__) || defined(__sparc64__) || defined(__ia64__)
 	newtd = choosethread();
 	if (td != newtd)
 		cpu_switch(td, newtd);	/* SHAZAM!! */

==== //depot/projects/ia64_epc/sys/sys/proc.h#5 (text+ko) ====

@@ -889,7 +889,7 @@
 void	sleepinit(void);
 void	stopevent(struct proc *, u_int, u_int);
 void	cpu_idle(void);
-#if defined(__i386__) || defined(__sparc64__)
+#if defined(__i386__) || defined(__sparc64__) || defined(__ia64__)
 void	cpu_switch(struct thread *old, struct thread *new);
 void	cpu_throw(struct thread *old, struct thread *new) __dead2;
 #else


More information about the p4-projects mailing list