diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2020-01-16 05:01:21 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2020-01-16 05:01:21 +0000 |
commit | a81c400e753c30a7e50e7b5b878d0248696b8b23 (patch) | |
tree | c30bd56be26aa2c988ec230fefd3a553b3d20518 /sys/vm/vm_kern.c | |
parent | e16c18650cdc45fd7d9ff1edfe34ab32e7658299 (diff) | |
download | src-a81c400e753c30a7e50e7b5b878d0248696b8b23.tar.gz src-a81c400e753c30a7e50e7b5b878d0248696b8b23.zip |
Notes
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r-- | sys/vm/vm_kern.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index f8d67460f133..ee3fbedbba2b 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -129,6 +129,8 @@ SYSCTL_ULONG(_vm, OID_AUTO, max_kernel_address, CTLFLAG_RD, #endif #define KVA_QUANTUM (1 << KVA_QUANTUM_SHIFT) +extern void uma_startup2(void); + /* * kva_alloc: * @@ -814,6 +816,13 @@ kmem_init(vm_offset_t start, vm_offset_t end) kernel_arena, KVA_QUANTUM); #endif } + + /* + * This must be the very first call so that the virtual address + * space used for early allocations is properly marked used in + * the map. + */ + uma_startup2(); } /* |