]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move vm_page_dump bitset array definition to MI code
authorscottph <scottph@FreeBSD.org>
Mon, 21 Sep 2020 22:20:37 +0000 (22:20 +0000)
committerscottph <scottph@FreeBSD.org>
Mon, 21 Sep 2020 22:20:37 +0000 (22:20 +0000)
commitf0deb41a04afb8b7457e115376b532d860cbe1ad
tree5eac5e6ee8c19209a3b421f8f4377eb19f1489c0
parent002066e7a8cdda192818f5292d245df95a8637a0
Move vm_page_dump bitset array definition to MI code

These definitions were repeated by all architectures, with small
variations. Consolidate the common definitons in machine
independent code and use bitset(9) macros for manipulation. Many
opportunities for deduplication remain in the machine dependent
minidump logic. The only intended functional change is increasing
the bit index type to vm_pindex_t, allowing the indexing of pages
with address of 8 TiB and greater.

Reviewed by: kib, markj
Approved by: scottl (implicit)
MFC after: 1 week
Sponsored by: Ampere Computing, Inc.
Differential Revision: https://reviews.freebsd.org/D26129
26 files changed:
.clang-format
sys/amd64/amd64/minidump_machdep.c
sys/amd64/include/md_var.h
sys/amd64/include/vmparam.h
sys/arm/arm/minidump_machdep.c
sys/arm/include/md_var.h
sys/arm/include/vmparam.h
sys/arm64/arm64/minidump_machdep.c
sys/arm64/include/md_var.h
sys/arm64/include/vmparam.h
sys/i386/i386/minidump_machdep.c
sys/i386/i386/minidump_machdep_base.c
sys/i386/include/md_var.h
sys/i386/include/vmparam.h
sys/mips/include/md_var.h
sys/mips/include/vmparam.h
sys/mips/mips/minidump_machdep.c
sys/powerpc/include/md_var.h
sys/powerpc/include/vmparam.h
sys/powerpc/powerpc/minidump_machdep.c
sys/riscv/include/md_var.h
sys/riscv/include/vmparam.h
sys/riscv/riscv/minidump_machdep.c
sys/vm/vm_page.c
sys/vm/vm_page.h
sys/x86/include/x86_var.h