diff options
author | Bojan Novković <bnovkov@FreeBSD.org> | 2024-05-03 16:48:18 +0000 |
---|---|---|
committer | Bojan Novković <bnovkov@FreeBSD.org> | 2024-05-25 17:24:46 +0000 |
commit | da76d349b6b104f4e70562304c800a0793dea18d (patch) | |
tree | bdf017611be2509b68bf0aff30aaeb6e362f3737 /sys/riscv/include/vmparam.h | |
parent | 9b1de7e4844d951a7d7335cbde75a86a2380e220 (diff) | |
download | src-da76d349b6b104f4e70562304c800a0793dea18d.tar.gz src-da76d349b6b104f4e70562304c800a0793dea18d.zip |
uma: Deduplicate uma_small_alloc
This commit refactors the UMA small alloc code and
removes most UMA machine-dependent code.
The existing machine-dependent uma_small_alloc code is almost identical
across all architectures, except for powerpc where using the direct
map addresses involved extra steps in some cases.
The MI/MD split was replaced by a default uma_small_alloc
implementation that can be overridden by architecture-specific code by
defining the UMA_MD_SMALL_ALLOC symbol. Furthermore, UMA_USE_DMAP was
introduced to replace most UMA_MD_SMALL_ALLOC uses.
Reviewed by: markj, kib
Approved by: markj (mentor)
Differential Revision: https://reviews.freebsd.org/D45084
Diffstat (limited to 'sys/riscv/include/vmparam.h')
-rw-r--r-- | sys/riscv/include/vmparam.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/riscv/include/vmparam.h b/sys/riscv/include/vmparam.h index d2014654b691..5711bc8c347e 100644 --- a/sys/riscv/include/vmparam.h +++ b/sys/riscv/include/vmparam.h @@ -234,7 +234,7 @@ #define VM_INITIAL_PAGEIN 16 #endif -#define UMA_MD_SMALL_ALLOC +#define UMA_USE_DMAP #ifndef LOCORE extern vm_paddr_t dmap_phys_base; |