Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Sep 2012 17:33:17 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240860 - head/sys/powerpc/include
Message-ID:  <201209231733.q8NHXHGa044168@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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_ */



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