summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-08-27 11:22:19 +0000
committerLuiz Souza <luiz@netgate.com>2018-02-19 14:39:25 -0300
commitd574a360a44f0e9e7f2ac9410d978250eff2eee4 (patch)
tree84547e752fc926fceb590c5bb1b62712ea217769
parent74f422aa0c80a2b2cc5b62800ec3530ffacfd71e (diff)
downloadFreeBSD-src-d574a360a44f0e9e7f2ac9410d978250eff2eee4.zip
FreeBSD-src-d574a360a44f0e9e7f2ac9410d978250eff2eee4.tar.gz
MFC r322718:
Use ANSI C declaration for trap_pfault(). Style. (cherry picked from commit 835f94b17c388359d5c9337a6878f594c9b204d5)
-rw-r--r--sys/amd64/amd64/trap.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 37246b1..d936013 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -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)) {
/*
OpenPOWER on IntegriCloud