svn commit: r322944 - stable/11/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Sun Aug 27 11:22:20 UTC 2017


Author: kib
Date: Sun Aug 27 11:22:19 2017
New Revision: 322944
URL: https://svnweb.freebsd.org/changeset/base/322944

Log:
  MFC r322718:
  Use ANSI C declaration for trap_pfault().  Style.

Modified:
  stable/11/sys/amd64/amd64/trap.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/amd64/trap.c
==============================================================================
--- stable/11/sys/amd64/amd64/trap.c	Sun Aug 27 06:24:06 2017	(r322943)
+++ stable/11/sys/amd64/amd64/trap.c	Sun Aug 27 11:22:19 2017	(r322944)
@@ -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