aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-02-22 23:21:49 +0000
committerMark Johnston <markj@FreeBSD.org>2021-02-22 23:22:51 +0000
commit537f92cd351090c09b178a1749cd1d0326f74dc7 (patch)
tree1f2a2322450dceaa2c8dea8b8eade3ab9af07422
parentd510bf133d045d6c83742aeda6949bec150f6cbf (diff)
downloadsrc-537f92cd351090c09b178a1749cd1d0326f74dc7.tar.gz
src-537f92cd351090c09b178a1749cd1d0326f74dc7.zip
uma: Update the comment above startup_alloc() to reflect reality
The scheme used for early slab allocations changed in commit a81c400e75. Reported by: alc Reviewed by: alc MFC after: 1 week
-rw-r--r--sys/vm/uma_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 0b6e02861785..8cbd1216678a 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -1642,9 +1642,9 @@ fail:
}
/*
- * This function is intended to be used early on in place of page_alloc() so
- * that we may use the boot time page cache to satisfy allocations before
- * the VM is ready.
+ * This function is intended to be used early on in place of page_alloc(). It
+ * performs contiguous physical memory allocations and uses a bump allocator for
+ * KVA, so is usable before the kernel map is initialized.
*/
static void *
startup_alloc(uma_zone_t zone, vm_size_t bytes, int domain, uint8_t *pflag,