svn commit: r322718 - head/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Sun Aug 20 09:39:11 UTC 2017


Author: kib
Date: Sun Aug 20 09:39:10 2017
New Revision: 322718
URL: https://svnweb.freebsd.org/changeset/base/322718

Log:
  Use ANSI C declaration for trap_pfault().  Style.
  
  Reviewed by:	bde
  Tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/amd64/amd64/trap.c

Modified: head/sys/amd64/amd64/trap.c
==============================================================================
--- head/sys/amd64/amd64/trap.c	Sun Aug 20 07:06:13 2017	(r322717)
+++ head/sys/amd64/amd64/trap.c	Sun Aug 20 09:39:10 2017	(r322718)
@@ -609,17 +609,20 @@ trap_check(struct trapframe *frame)
 }
 
 static int
-trap_pfault(frame, usermode)
-	struct trapframe *frame;
-	int usermode;
+trap_pfault(struct trapframe *frame, int usermode)
 {
-	vm_offset_t va;
+	struct thread *td;
+	struct proc *p;
 	vm_map_t map;
-	int rv = 0;
+	vm_offset_t va;
+	int rv;
 	vm_prot_t ftype;
-	struct thread *td = curthread;
-	struct proc *p = td->td_proc;
-	vm_offset_t eva = frame->tf_addr;
+	vm_offset_t eva;
+
+	td = curthread;
+	p = td->td_proc;
+	eva = frame->tf_addr;
+	rv = 0;
 
 	if (__predict_false((td->td_pflags & TDP_NOFAULTING) != 0)) {
 		/*


More information about the svn-src-all mailing list