mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
vm_kern: Avoid sign extension in the KVA_QUANTUM definition
Otherwise, on a powerpc64 NUMA system with hashed page tables, the first-level superpage reservation size is large enough that the value of the kernel KVA arena import quantum, KVA_NUMA_IMPORT_QUANTUM, is negative and gets sign-extended when passed to vmem_set_import(). This results in a boot-time hang on such platforms. Reported by: bdragon MFC after: 3 days
This commit is contained in:
parent
5ce2d4a1c2
commit
23e875fd97
1 changed files with 1 additions and 1 deletions
|
|
@ -127,7 +127,7 @@ SYSCTL_ULONG(_vm, OID_AUTO, max_kernel_address, CTLFLAG_RD,
|
|||
/* On non-superpage architectures we want large import sizes. */
|
||||
#define KVA_QUANTUM_SHIFT (8 + PAGE_SHIFT)
|
||||
#endif
|
||||
#define KVA_QUANTUM (1 << KVA_QUANTUM_SHIFT)
|
||||
#define KVA_QUANTUM (1ul << KVA_QUANTUM_SHIFT)
|
||||
#define KVA_NUMA_IMPORT_QUANTUM (KVA_QUANTUM * 128)
|
||||
|
||||
extern void uma_startup2(void);
|
||||
|
|
|
|||
Loading…
Reference in a new issue