kernel - Fix int/long truncation problem in rman_reserve_resource()
commitfc4394d140be3e7dba4315d0af40b2efa433164e
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 21 Oct 2014 06:08:50 +0000 (20 23:08 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 21 Oct 2014 06:08:50 +0000 (20 23:08 -0700)
tree889cea8c58f24ccfbb3a76560ec3483131cc3491
parente92835134993dfda5aebadb12a9bae3a605f8b5e
kernel - Fix int/long truncation problem in rman_reserve_resource()

* Use ulmin/ulmax instead of min/max in three places, fixing a 32-bit
  truncation problem when setting up memory resources that caused our
  48-core opteron to panic.

* An earlier commit adjusting count values to be more correct revealed
  the bug.

* Fixes booting the kernel on our 48-core opteron w/128G of ram.
sys/kern/subr_rman.c
sys/platform/pc64/x86_64/nexus.c