svn commit: r242677 - stable/9/sys/powerpc/include

Nathan Whitehorn nwhitehorn at FreeBSD.org
Tue Nov 6 21:53:17 UTC 2012


Author: nwhitehorn
Date: Tue Nov  6 21:53:17 2012
New Revision: 242677
URL: http://svnweb.freebsd.org/changeset/base/242677

Log:
  MFC r240860:
  Move the prototype for savectx from cpu.h to pcb.h, as it is on other
  platforms, as well as putting it in an #ifdef KERNEL block.

Modified:
  stable/9/sys/powerpc/include/cpu.h
  stable/9/sys/powerpc/include/pcb.h
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/powerpc/include/cpu.h
==============================================================================
--- stable/9/sys/powerpc/include/cpu.h	Tue Nov  6 21:48:45 2012	(r242676)
+++ stable/9/sys/powerpc/include/cpu.h	Tue Nov  6 21:53:17 2012	(r242677)
@@ -98,7 +98,4 @@ void	cpu_reset(void);
 void	fork_trampoline(void);
 void	swi_vm(void *);
 
-/* XXX the following should not be here. */
-void	savectx(struct pcb *) __returns_twice;
-
 #endif	/* _MACHINE_CPU_H_ */

Modified: stable/9/sys/powerpc/include/pcb.h
==============================================================================
--- stable/9/sys/powerpc/include/pcb.h	Tue Nov  6 21:48:45 2012	(r242676)
+++ stable/9/sys/powerpc/include/pcb.h	Tue Nov  6 21:53:17 2012	(r242677)
@@ -89,6 +89,7 @@ extern struct pmap *curpm;
 extern struct proc *fpuproc;
 
 void	makectx(struct trapframe *, struct pcb *);
+void	savectx(struct pcb *) __returns_twice;
 
 #endif
 #endif	/* _MACHINE_PCB_H_ */


More information about the svn-src-stable-9 mailing list