From owner-svn-src-all@FreeBSD.ORG Sun Sep 23 17:33:17 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE58F106564A; Sun, 23 Sep 2012 17:33:17 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 998468FC08; Sun, 23 Sep 2012 17:33:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q8NHXHR1044171; Sun, 23 Sep 2012 17:33:17 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q8NHXHGa044168; Sun, 23 Sep 2012 17:33:17 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201209231733.q8NHXHGa044168@svn.freebsd.org> From: Nathan Whitehorn Date: Sun, 23 Sep 2012 17:33:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r240860 - head/sys/powerpc/include X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Sep 2012 17:33:17 -0000 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_ */