From b34f6f7ab1b2b31d561cfbfbc0b43a23c6d93a3e Mon Sep 17 00:00:00 2001 From: alc Date: Sat, 5 May 2007 19:50:28 +0000 Subject: Define every architecture as either VM_PHYSSEG_DENSE or VM_PHYSSEG_SPARSE depending on whether the physical address space is densely or sparsely populated with memory. The effect of this definition is to determine which of two implementations of vm_page_array and PHYS_TO_VM_PAGE() is used. The legacy implementation is obtained by defining VM_PHYSSEG_DENSE, and a new implementation that trades off time for space is obtained by defining VM_PHYSSEG_SPARSE. For now, all architectures except for ia64 and sparc64 define VM_PHYSSEG_DENSE. Defining VM_PHYSSEG_SPARSE on ia64 allows the entirety of my Itanium 2's memory to be used. Previously, only the first 1 GB could be used. Defining VM_PHYSSEG_SPARSE on sparc64 allows USIIIi-based systems to boot without crashing. This change is a combination of Nathan Whitehorn's patch and my own work in perforce. Discussed with: kmacy, marius, Nathan Whitehorn PR: 112194 --- sys/i386/include/vmparam.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/i386/include/vmparam.h') diff --git a/sys/i386/include/vmparam.h b/sys/i386/include/vmparam.h index 042470e..24765d3 100644 --- a/sys/i386/include/vmparam.h +++ b/sys/i386/include/vmparam.h @@ -82,6 +82,11 @@ /* + * The physical address space is densely populated. + */ +#define VM_PHYSSEG_DENSE + +/* * Kernel physical load address. */ #ifndef KERNLOAD -- cgit v1.1