]> xenbits.xensource.com Git - xen.git/commitdiff
x86/boot: use constant in head.S instead of hardcoded value
authorDaniel Kiper <daniel.kiper@oracle.com>
Thu, 23 Oct 2014 08:22:01 +0000 (10:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 23 Oct 2014 08:22:01 +0000 (10:22 +0200)
..to access multiboot.mem_lower data.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/boot/head.S
xen/arch/x86/x86_64/asm-offsets.c

index cd43952f6fe4f6163d166aaa0e40c7ab9022b326..c99f73930d5c26b71cb6b122cd491d4eb67cbc2c 100644 (file)
@@ -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
index 3994f4df1f1a307bc841a2de25503a06f040af14..447c650b1acedf43cd242a41f3be8c7a88e4104c 100644 (file)
@@ -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);
 }