]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Exclude E820_RESERVED regions and memory holes above 4 GB from direct mapping.
authorJacob Shin <jacob.shin@amd.com>
Thu, 20 Oct 2011 21:15:26 +0000 (16:15 -0500)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 17 Oct 2012 17:59:39 +0000 (10:59 -0700)
commit8c937150ccf90fded2bcab54202bd046f32d3766
treeab09b4f7fded56cf36943ec56ef6b54baa786b67
parenta597710389feee2beaad664188a15a50b70a8916
x86: Exclude E820_RESERVED regions and memory holes above 4 GB from direct mapping.

On systems with very large memory (1 TB in our case), BIOS may report a
reserved region or a hole in the E820 map, even above the 4 GB range. Exclude
these from the direct mapping.

[ hpa: this should be done not just for > 4 GB but for everything above the legacy
  region (1 MB), at the very least.  That, however, turns out to require significant
  restructuring.  That work is well underway, but is not suitable for rc/stable. ]

Cc: stable@kernel.org # > 2.6.32
Signed-off-by: Jacob Shin <jacob.shin@amd.com>
Link: http://lkml.kernel.org/r/1319145326-13902-1-git-send-email-jacob.shin@amd.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/setup.c