-/* $OpenBSD: pmap.c,v 1.149 2022/02/01 08:38:53 guenther Exp $ */
+/* $OpenBSD: pmap.c,v 1.150 2022/06/01 17:47:18 dv Exp $ */
/* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */
/*
* Parameters:
* pmap: the pmap to convert
* mode: the new mode (see pmap.h, PMAP_TYPE_xxx)
- *
- * Return value:
- * always 0
*/
-int
+void
pmap_convert(struct pmap *pmap, int mode)
{
pt_entry_t *pte;
pmap->pm_pdir_intel = NULL;
}
}
-
- return (0);
}
#ifdef MULTIPROCESSOR
-/* $OpenBSD: vmm.c,v 1.311 2022/05/20 22:42:09 dv Exp $ */
+/* $OpenBSD: vmm.c,v 1.312 2022/06/01 17:47:18 dv Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
}
}
- ret = pmap_convert(vm->vm_map->pmap, PMAP_TYPE_EPT);
- if (ret) {
- printf("%s: pmap_convert failed\n", __func__);
- /* uvmspace_free calls pmap_destroy for us */
- uvmspace_free(vm->vm_vmspace);
- vm->vm_vmspace = NULL;
- return (ENOMEM);
- }
+ pmap_convert(vm->vm_map->pmap, PMAP_TYPE_EPT);
return (0);
}
}
/* Convert pmap to RVI */
- ret = pmap_convert(vm->vm_map->pmap, PMAP_TYPE_RVI);
+ pmap_convert(vm->vm_map->pmap, PMAP_TYPE_RVI);
- return (ret);
+ return (0);
}
/*
-/* $OpenBSD: pmap.h,v 1.79 2022/02/01 08:38:53 guenther Exp $ */
+/* $OpenBSD: pmap.h,v 1.80 2022/06/01 17:47:18 dv Exp $ */
/* $NetBSD: pmap.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */
/*
void pagezero(vaddr_t);
-int pmap_convert(struct pmap *, int);
+void pmap_convert(struct pmap *, int);
void pmap_enter_special(vaddr_t, paddr_t, vm_prot_t);
vaddr_t pmap_set_pml4_early(paddr_t pa);
void pmap_clear_pml4_early(void);