kernel - Fix hw.usermem, hw.physmem, hw.availpages
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 6 Dec 2017 07:00:22 +0000 (23:00 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 6 Dec 2017 07:00:22 +0000 (23:00 -0800)
commit2114fc935b219c20d6839614939c3dc1acd61dd3
tree0171ef5125ae8ef75c0eb90e3f5169225306bf36
parente4f55ba263c00e15cf119e03b9af81cd218143e7
kernel - Fix hw.usermem, hw.physmem, hw.availpages

* Fix the hw.usermem, hw.physmem, and hw.availpages sysctls.
  Some of these were improperly 32-bit sysctls when they need
  to be 64-bits, causing silly values to be returned on
  machines with more than 2G of ram.

Reported-by: zrj
sys/platform/pc64/x86_64/machdep.c
sys/platform/vkernel64/x86_64/cpu_regs.c