[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] cleanup for __start_xen()
Remove repetitive judgment in __start_xen() Signed-off-by: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx> diff --git a/a/xen/arch/x86/setup.c b/b/xen/arch/x86/setup.c index d87d082..563e46a 100644 --- a/a/xen/arch/x86/setup.c +++ b/b/xen/arch/x86/setup.c @@ -729,7 +729,7 @@ void __init __start_xen(unsigned long mbi_p) #endif /* Is the region suitable for relocating the multiboot modules? */ - if ( !initial_images_start && (s < e) && + if ( !initial_images_start && ((e-s) >= (modules_length+modules_headroom)) ) { initial_images_end = e; @@ -747,7 +747,7 @@ void __init __start_xen(unsigned long mbi_p) } } - if ( !kexec_crash_area.start && (s < e) && + if ( !kexec_crash_area.start && ((e-s) >= kexec_crash_area.size) ) { e = (e - kexec_crash_area.size) & PAGE_MASK; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |