Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2017 22:02:11 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r313109 - in head/sys/i386: i386 isa
Message-ID:  <201702022202.v12M2BQ0010048@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Feb  2 22:02:10 2017
New Revision: 313109
URL: https://svnweb.freebsd.org/changeset/base/313109

Log:
  Use ANSI definitions for some i386 functions.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/i386/i386/machdep.c
  head/sys/i386/i386/vm_machdep.c
  head/sys/i386/isa/npx.c

Modified: head/sys/i386/i386/machdep.c
==============================================================================
--- head/sys/i386/i386/machdep.c	Thu Feb  2 21:05:55 2017	(r313108)
+++ head/sys/i386/i386/machdep.c	Thu Feb  2 22:02:10 2017	(r313109)
@@ -2164,8 +2164,7 @@ i386_kdb_init(void)
 }
 
 register_t
-init386(first)
-	int first;
+init386(int first)
 {
 	struct gate_descriptor *gdp;
 	int gsel_tss, metadata_missing, x, pa;

Modified: head/sys/i386/i386/vm_machdep.c
==============================================================================
--- head/sys/i386/i386/vm_machdep.c	Thu Feb  2 21:05:55 2017	(r313108)
+++ head/sys/i386/i386/vm_machdep.c	Thu Feb  2 22:02:10 2017	(r313109)
@@ -172,11 +172,7 @@ alloc_fpusave(int flags)
  * ready to run and return to user mode.
  */
 void
-cpu_fork(td1, p2, td2, flags)
-	register struct thread *td1;
-	register struct proc *p2;
-	struct thread *td2;
-	int flags;
+cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags)
 {
 	register struct proc *p1;
 	struct pcb *pcb2;

Modified: head/sys/i386/isa/npx.c
==============================================================================
--- head/sys/i386/isa/npx.c	Thu Feb  2 21:05:55 2017	(r313108)
+++ head/sys/i386/isa/npx.c	Thu Feb  2 22:02:10 2017	(r313109)
@@ -542,8 +542,7 @@ SYSINIT(npxinitstate, SI_SUB_DRIVERS, SI
  * Free coprocessor (if we have it).
  */
 void
-npxexit(td)
-	struct thread *td;
+npxexit(struct thread *td)
 {
 
 	critical_enter();
@@ -573,7 +572,7 @@ npxexit(td)
 }
 
 int
-npxformat()
+npxformat(void)
 {
 
 	if (!hw_float)
@@ -953,7 +952,7 @@ npxresume(union savefpu *addr)
 }
 
 void
-npxdrop()
+npxdrop(void)
 {
 	struct thread *td;
 
@@ -1289,8 +1288,7 @@ fpu_clean_state(void)
 #endif /* CPU_ENABLE_SSE */
 
 static void
-fpurstor(addr)
-	union savefpu *addr;
+fpurstor(union savefpu *addr)
 {
 
 #ifdef CPU_ENABLE_SSE



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