From 35e3627d3a252b3b5ff57439f27f3d86a3741c67 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Wed, 24 Jul 2019 10:13:11 +0200 Subject: 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 --- code16.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code16.c') diff --git a/code16.c b/code16.c index f933915..cfcf50a 100644 --- a/code16.c +++ b/code16.c @@ -57,7 +57,7 @@ bioscall void e820_query_map(struct biosregs *regs) 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; -- cgit v1.1