kern - Properly return the number of bytes in hw.physmem sysctl.
authorAntonio Huete <tuxillo@quantumachine.net>
Fri, 4 Feb 2011 13:34:05 +0000 (14:34 +0100)
committerAntonio Huete <tuxillo@quantumachine.net>
Fri, 4 Feb 2011 13:34:05 +0000 (14:34 +0100)
commit39d69daecef529eb49d36fefa429c8ac08e7cbc1
treef005e856439595b9d269294a0de8cbcf9fc0fd89
parentd0aa00e891d3bf34e5273456a080ac9c23ac7229
kern - Properly return the number of bytes in hw.physmem sysctl.

- Changed physmem from int to long, now it can hold a
  really high number of pages.
- Return an unsigned long value with appropiate formatting
  for hw.physmem.
- Add description for it.

Based-upon: FreeBSD
sbin/sysctl/sysctl.8
sys/platform/pc32/i386/machdep.c
sys/platform/pc64/x86_64/machdep.c
sys/platform/vkernel/i386/cpu_regs.c
sys/platform/vkernel/platform/init.c
sys/platform/vkernel64/platform/init.c
sys/platform/vkernel64/x86_64/cpu_regs.c
sys/sys/sysctl.h
sys/sys/systm.h