summaryrefslogtreecommitdiffstats
path: root/contrib/gcclibs/libcpp/macro.c
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>2013-11-15 16:05:55 +0000
committergibbs <gibbs@FreeBSD.org>2013-11-15 16:05:55 +0000
commit918d52163571954d03a7bf166cfddf5386ffdf64 (patch)
treeda4a099420068540a85b0b78e6e693099aecad23 /contrib/gcclibs/libcpp/macro.c
parentbbfd12afafeb34a3ee595dd1f5f6e787b3fe281b (diff)
downloadFreeBSD-src-918d52163571954d03a7bf166cfddf5386ffdf64.zip
FreeBSD-src-918d52163571954d03a7bf166cfddf5386ffdf64.tar.gz
Fix accounting for hw.realmem on the i386 and amd64 platforms.
sys/i386/i386/machdep.c: sys/amd64/amd64/machdep.c: The value reported by FreeBSD as "real memory" when booting doesn't match what is later reported by sysctl as hw.realmem. This is due to the fact that the value printed during the boot process is fetched from smbios data (when possible), and accounts for holes in physical memory. On the other hand, the value of hw.realmem is unconditionally set to be one larger than the highest page of the physical address space. Fix this by setting hw.realmem to the same value printed during boot, this makes hw.realmem honour it's name and account properly for physical memory present in the system. Submitted by: Roger Pau Monné Reviewed by: gibbs
Diffstat (limited to 'contrib/gcclibs/libcpp/macro.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud