[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/boot: use constant in head.S instead of hardcoded value
commit d6ea91d6e7a118bdf2384dfbaa9caa14b19bc61d Author: Daniel Kiper <daniel.kiper@xxxxxxxxxx> AuthorDate: Thu Oct 23 10:22:01 2014 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Oct 23 10:22:01 2014 +0200 x86/boot: use constant in head.S instead of hardcoded value ..to access multiboot.mem_lower data. Signed-off-by: Daniel Kiper <daniel.kiper@xxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/arch/x86/boot/head.S | 2 +- xen/arch/x86/x86_64/asm-offsets.c | 1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S index cd43952..c99f739 100644 --- a/xen/arch/x86/boot/head.S +++ b/xen/arch/x86/boot/head.S @@ -101,7 +101,7 @@ __start: */ testb $MBI_MEMLIMITS,(%ebx) jz 2f /* not available? BDA value will be fine */ - mov 4(%ebx),%edx + mov MB_mem_lower(%ebx),%edx cmp $0x100,%edx /* is the multiboot value too small? */ jb 2f /* if so, do not use it */ shl $10-4,%edx diff --git a/xen/arch/x86/x86_64/asm-offsets.c b/xen/arch/x86/x86_64/asm-offsets.c index 3994f4d..447c650 100644 --- a/xen/arch/x86/x86_64/asm-offsets.c +++ b/xen/arch/x86/x86_64/asm-offsets.c @@ -165,4 +165,5 @@ void __dummy__(void) OFFSET(MB_flags, multiboot_info_t, flags); OFFSET(MB_cmdline, multiboot_info_t, cmdline); + OFFSET(MB_mem_lower, multiboot_info_t, mem_lower); } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |