Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Apr 2003 15:18:15 -0800 (PST)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 28269 for review
Message-ID:  <200304052318.h35NIF8H035803@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28269

Change 28269 by marcel@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304052318.h35NIF8H035803>