PR port-amd64/38708 lkm_map issues on amd64
lkm_map should not be marked pageable.
This commit is contained in:
parent
94b6b18770
commit
22af427bf0
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: machdep.c,v 1.93 2008/05/11 14:44:53 ad Exp $ */
|
/* $NetBSD: machdep.c,v 1.94 2008/05/21 03:04:35 ad Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008
|
* Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008
|
||||||
@ -112,7 +112,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.93 2008/05/11 14:44:53 ad Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.94 2008/05/21 03:04:35 ad Exp $");
|
||||||
|
|
||||||
/* #define XENDEBUG_LOW */
|
/* #define XENDEBUG_LOW */
|
||||||
|
|
||||||
@ -362,7 +362,7 @@ cpu_startup(void)
|
|||||||
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
|
||||||
nmbclusters * mclbytes, VM_MAP_INTRSAFE, false, NULL);
|
nmbclusters * mclbytes, VM_MAP_INTRSAFE, false, NULL);
|
||||||
|
|
||||||
uvm_map_setup(&lkm_map_store, lkm_start, lkm_end, VM_MAP_PAGEABLE);
|
uvm_map_setup(&lkm_map_store, lkm_start, lkm_end, 0);
|
||||||
lkm_map_store.pmap = pmap_kernel();
|
lkm_map_store.pmap = pmap_kernel();
|
||||||
lkm_map = &lkm_map_store;
|
lkm_map = &lkm_map_store;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user