From c9158910ef6a564417e1a7e4759a4b350d9e02e6 Mon Sep 17 00:00:00 2001 From: kib Date: Thu, 9 Feb 2017 04:45:18 +0000 Subject: [PATCH] MFC r313109: Use ANSI definitions for some i386 functions. git-svn-id: svn://svn.freebsd.org/base/stable/10@313464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/i386/i386/machdep.c | 3 +-- sys/i386/i386/vm_machdep.c | 6 +----- sys/i386/isa/npx.c | 10 ++++------ 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index f55900c12..607b08bf4 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -3157,8 +3157,7 @@ init386(first) #else register_t -init386(first) - int first; +init386(int first) { struct gate_descriptor *gdp; int gsel_tss, metadata_missing, x, pa; diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index c0e65d504..a76a5ecc1 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -209,11 +209,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; diff --git a/sys/i386/isa/npx.c b/sys/i386/isa/npx.c index dff0f5cd0..bc42bbbed 100644 --- a/sys/i386/isa/npx.c +++ b/sys/i386/isa/npx.c @@ -559,8 +559,7 @@ SYSINIT(npxinitstate, SI_SUB_DRIVERS, SI_ORDER_ANY, npxinitstate, NULL); * Free coprocessor (if we have it). */ void -npxexit(td) - struct thread *td; +npxexit(struct thread *td) { critical_enter(); @@ -590,7 +589,7 @@ npxexit(td) } int -npxformat() +npxformat(void) { if (!hw_float) @@ -970,7 +969,7 @@ npxresume(union savefpu *addr) } void -npxdrop() +npxdrop(void) { struct thread *td; @@ -1203,8 +1202,7 @@ fpu_clean_state(void) #endif /* CPU_ENABLE_SSE */ static void -fpurstor(addr) - union savefpu *addr; +fpurstor(union savefpu *addr) { #ifdef CPU_ENABLE_SSE -- 2.45.0