svn commit: r240860 - head/sys/powerpc/include

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sun Sep 23 17:33:17 UTC 2012


Author: nwhitehorn
Date: Sun Sep 23 17:33:16 2012
New Revision: 240860
URL: http://svn.freebsd.org/changeset/base/240860

Log:
  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.
  
  MFC after:	2 weeks

Modified:
  head/sys/powerpc/include/cpu.h
  head/sys/powerpc/include/pcb.h

Modified: head/sys/powerpc/include/cpu.h
==============================================================================
--- head/sys/powerpc/include/cpu.h	Sun Sep 23 14:50:01 2012	(r240859)
+++ head/sys/powerpc/include/cpu.h	Sun Sep 23 17:33:16 2012	(r240860)
@@ -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: head/sys/powerpc/include/pcb.h
==============================================================================
--- head/sys/powerpc/include/pcb.h	Sun Sep 23 14:50:01 2012	(r240859)
+++ head/sys/powerpc/include/pcb.h	Sun Sep 23 17:33:16 2012	(r240860)
@@ -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-head mailing list