diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-12-20 14:25:01 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-12-20 14:25:01 +0000 |
commit | 84fc9a463166d293ab6d3c385097aa92d8594869 (patch) | |
tree | 794d33ce35d0c25140eefa35cedde2718210df0f /sys/powerpc/include | |
parent | 2c12157d7bed8bc5e1b4d1ba192dc624c45f11cd (diff) | |
download | FreeBSD-src-84fc9a463166d293ab6d3c385097aa92d8594869.zip FreeBSD-src-84fc9a463166d293ab6d3c385097aa92d8594869.tar.gz |
Memory can be laid out with large gaps on 64-bit PowerPC, so switch to
VM_PHYSSEG_SPARSE.
Diffstat (limited to 'sys/powerpc/include')
-rw-r--r-- | sys/powerpc/include/vmparam.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/powerpc/include/vmparam.h b/sys/powerpc/include/vmparam.h index 13f2e57..d98aea5 100644 --- a/sys/powerpc/include/vmparam.h +++ b/sys/powerpc/include/vmparam.h @@ -140,9 +140,14 @@ struct pmap_physseg { #define VM_PHYSSEG_MAX 16 /* 1? */ /* - * The physical address space is densely populated. + * The physical address space is densely populated on 32-bit systems, + * but may not be on 64-bit ones. */ +#ifdef __powerpc64__ +#define VM_PHYSSEG_SPARSE +#else #define VM_PHYSSEG_DENSE +#endif /* * Create three free page pools: VM_FREEPOOL_DEFAULT is the default pool |