commit | 35e3627d3a252b3b5ff57439f27f3d86a3741c67 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Wed Jul 24 10:13:11 2019 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Wed Jul 24 10:19:39 2019 +0200 |
tree | 1533a449577ea4a5823fafdab8cf3c8ca06f654c | |
parent | ec67a827f6b6482e688a92a5b99accfdb2e17b5e [diff] |
remove incorrect flat_to_off16 Here we use offsetof so "start" is not a flat pointer, it is a pointer inside the e820 segment. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/code16.c b/code16.c index f933915..cfcf50a 100644 --- a/code16.c +++ b/code16.c
@@ -57,7 +57,7 @@ unsigned int i; uint8_t *p; - start = flat_to_off16(offsetof(struct e820map, map[ndx])); + start = offsetof(struct e820map, map[ndx]); p = (void *) regs->edi;