-/* $OpenBSD: pmap.h,v 1.4 2021/05/12 01:20:52 jsg Exp $ */
+/* $OpenBSD: pmap.h,v 1.5 2021/05/15 14:05:35 deraadt Exp $ */
/*
* Copyright (c) 2019-2020 Brian Bamsch <bbamsch@google.com>
/* investigate */
#define pmap_unuse_final(p) do { /* nothing */ } while (0)
-int pmap_fault_fixup(pmap_t, vaddr_t, vm_prot_t, int);
+int pmap_fault_fixup(pmap_t, vaddr_t, vm_prot_t);
void pmap_postinit(void);
#endif /* _KERNEL && !_LOCORE */
-/* $OpenBSD: pmap.c,v 1.9 2021/05/14 06:48:52 jsg Exp $ */
+/* $OpenBSD: pmap.c,v 1.10 2021/05/15 14:05:35 deraadt Exp $ */
/*
* Copyright (c) 2019-2020 Brian Bamsch <bbamsch@google.com>
* for this emulation, or to tell the caller that it's a legit fault.
*/
int
-pmap_fault_fixup(pmap_t pm, vaddr_t va, vm_prot_t ftype, int user)
+pmap_fault_fixup(pmap_t pm, vaddr_t va, vm_prot_t ftype)
{
struct pte_desc *pted;
struct vm_page *pg;
-/* $OpenBSD: trap.c,v 1.9 2021/05/14 06:48:52 jsg Exp $ */
+/* $OpenBSD: trap.c,v 1.10 2021/05/15 14:05:36 deraadt Exp $ */
/*
* Copyright (c) 2020 Shivam Waghela <shivamwaghela@gmail.com>
map = &p->p_vmspace->vm_map;
}
- if (pmap_fault_fixup(map->pmap, va, ftype, usermode))
+ if (pmap_fault_fixup(map->pmap, va, ftype))
goto done;
KERNEL_LOCK();