]> xenbits.xensource.com Git - xen.git/commit
x86/E820: don't overrun array
authorJan Beulich <jbeulich@suse.com>
Wed, 3 Jan 2018 10:03:56 +0000 (11:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 3 Jan 2018 10:03:56 +0000 (11:03 +0100)
commit0036c9dbcd8b52316aeebb475929d3a36cf5e514
tree6ae155c8f677b1f05b0819054f098901e0bebd6d
parent3443e68a778572a6e082d7dfcf9ce794eca62f5f
x86/E820: don't overrun array

The bounds check needs to be done after the increment, not before, or
else it needs to use a one lower immediate. Also use word operations
rather than byte ones for both the increment and the compare (allowing
E820_BIOS_MAX to be more easily bumped, should the need ever arise).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/boot/mem.S