-/* $OpenBSD: trap.c,v 1.161 2022/11/02 07:20:08 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.162 2022/11/18 03:47:21 deraadt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
KERNEL_UNLOCK();
(void)uvm_map_protect(map, p->p_md.md_fppgva,
p->p_md.md_fppgva + PAGE_SIZE,
- PROT_NONE, FALSE, FALSE);
+ PROT_NONE, 0, FALSE, FALSE);
return;
}
/* FALLTHROUGH */
*/
rc = uvm_map_protect(map, p->p_md.md_fppgva,
- p->p_md.md_fppgva + PAGE_SIZE, PROT_READ | PROT_WRITE, FALSE,
+ p->p_md.md_fppgva + PAGE_SIZE, PROT_READ | PROT_WRITE, 0, FALSE,
FALSE);
if (rc != 0) {
#ifdef DEBUG
}
(void)uvm_map_protect(map, p->p_md.md_fppgva,
- p->p_md.md_fppgva + PAGE_SIZE, PROT_READ | PROT_EXEC, FALSE, FALSE);
+ p->p_md.md_fppgva + PAGE_SIZE, PROT_READ | PROT_EXEC, 0, FALSE, FALSE);
p->p_md.md_fpbranchva = dest;
p->p_md.md_fpslotva = (vaddr_t)tf->pc + 4;
p->p_md.md_flags |= MDP_FPUSED;
KERNEL_UNLOCK();
err2:
(void)uvm_map_protect(map, p->p_md.md_fppgva,
- p->p_md.md_fppgva + PAGE_SIZE, PROT_NONE, FALSE, FALSE);
+ p->p_md.md_fppgva + PAGE_SIZE, PROT_NONE, 0, FALSE, FALSE);
return rc;
}
#endif