(VM_MAX_KERNEL_ADDRESS - KERNBASE) / PAGE_SIZE may not fit in an integer.
Use lmin(long, long), not min(u_int, u_int). This is a problem here on ia64 which has *way* more than 2^32 pages of KVA. 281474976710655 pages to be precice.
This commit is contained in:
parent
b80be28218
commit
9e7c1bce60
@ -263,7 +263,7 @@ vmspace_alloc(min, max)
|
||||
void
|
||||
vm_init2(void)
|
||||
{
|
||||
uma_zone_set_obj(kmapentzone, &kmapentobj, min(cnt.v_page_count,
|
||||
uma_zone_set_obj(kmapentzone, &kmapentobj, lmin(cnt.v_page_count,
|
||||
(VM_MAX_KERNEL_ADDRESS - KERNBASE) / PAGE_SIZE) / 8);
|
||||
vmspace_zone = uma_zcreate("VMSPACE", sizeof(struct vmspace), NULL,
|
||||
#ifdef INVARIANTS
|
||||
|
Loading…
Reference in New Issue
Block a user