freebsd-skq/sys/amd64
royger 00083cffc4 MFC 258176:
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
Approved by:	gibbs (mentor)
Approved by:	re (gjb)
2013-12-05 18:08:05 +00:00
..
acpica Consistently use round_page(x) rather than roundup(x, PAGE_SIZE). There is 2013-02-15 22:43:08 +00:00
amd64 MFC 258176: 2013-12-05 18:08:05 +00:00
conf MFC r256328: 2013-10-11 19:43:37 +00:00
ia32 MFC r258135: x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...) 2013-11-25 15:58:48 +00:00
include MFC r258660: 2013-12-03 19:41:48 +00:00
linux32 MFC r258135: x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...) 2013-11-25 15:58:48 +00:00
pci Remove duplicate code. Reduce diff between amd64 and i386. 2012-12-01 00:56:19 +00:00
vmm MFC r256645. 2013-10-22 00:58:51 +00:00
Makefile