diff options
author | Matthew Fioravante <matthew.fioravante@jhuapl.edu> | 2012-10-08 14:36:30 +0100 |
---|---|---|
committer | Matthew Fioravante <matthew.fioravante@jhuapl.edu> | 2012-10-08 14:36:30 +0100 |
commit | b8902baf80d75b7f5832dc435a868dfcc4d1f36f (patch) | |
tree | f278a06f47ae8bbbef23266a9684a94a37c63674 /extras/mini-os/arch/x86/mm.c | |
parent | 7ab9bbf9f8b922a25eb3d37ff5fd9b6a730bf85c (diff) | |
download | xen-b8902baf80d75b7f5832dc435a868dfcc4d1f36f.tar.gz xen-b8902baf80d75b7f5832dc435a868dfcc4d1f36f.tar.bz2 xen-b8902baf80d75b7f5832dc435a868dfcc4d1f36f.zip |
minios: Disable the mfn_is_ram() check, it doesn't work correctly on all systems
This patch disables the mfn_is_ram check in mini-os. The current check
is insufficient and fails on some systems with larger than 4gb memory.
Signed-off-by: Matthew Fioravante <matthew.fioravante@jhuapl.edu>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyons.org>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'extras/mini-os/arch/x86/mm.c')
-rw-r--r-- | extras/mini-os/arch/x86/mm.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/extras/mini-os/arch/x86/mm.c b/extras/mini-os/arch/x86/mm.c index 80aceacd2a..35df15bd1e 100644 --- a/extras/mini-os/arch/x86/mm.c +++ b/extras/mini-os/arch/x86/mm.c @@ -845,18 +845,6 @@ unsigned long alloc_contig_pages(int order, unsigned int addr_bits) } /* - * Check if a given MFN refers to real memory - */ -static long system_ram_end_mfn; -int mfn_is_ram(unsigned long mfn) -{ - /* very crude check if a given MFN is memory or not. Probably should - * make this a little more sophisticated ;) */ - return (mfn <= system_ram_end_mfn) ? 1 : 0; -} - - -/* * Clear some of the bootstrap memory */ static void clear_bootstrap(void) @@ -951,10 +939,6 @@ void arch_init_mm(unsigned long* start_pfn_p, unsigned long* max_pfn_p) clear_bootstrap(); set_readonly(&_text, &_erodata); - /* get the number of physical pages the system has. Used to check for - * system memory. */ - system_ram_end_mfn = HYPERVISOR_memory_op(XENMEM_maximum_ram_page, NULL); - *start_pfn_p = start_pfn; *max_pfn_p = max_pfn; } |