aboutsummaryrefslogtreecommitdiff
path: root/tables.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-09-06 14:44:22 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-09-06 15:57:15 +0200
commit96dbb2c0a24fdc6bbe4d8d834f0b879e01fdcae3 (patch)
tree47fc15d16e1467dc2ebde10aa1a1a174cea90d42 /tables.c
parent751e77e06ec147046b4eae76777dc2e22774aee0 (diff)
downloadqboot-96dbb2c0a24fdc6bbe4d8d834f0b879e01fdcae3.zip
qboot-96dbb2c0a24fdc6bbe4d8d834f0b879e01fdcae3.tar.gz
qboot-96dbb2c0a24fdc6bbe4d8d834f0b879e01fdcae3.tar.bz2
use fw_cfg_read_entry
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tables.c')
-rw-r--r--tables.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tables.c b/tables.c
index 3f59b3e..bb533b6 100644
--- a/tables.c
+++ b/tables.c
@@ -68,8 +68,7 @@ static void do_alloc(char *file, uint32_t align, uint8_t zone)
p = (char *)((uintptr_t)(p + align - 1) & -align);
set_file_addr(id, p);
- fw_cfg_file_select(id);
- fw_cfg_read(p, n);
+ fw_cfg_read_file(id, p, n);
}
static void do_ptr(char *dest, char *src, uint32_t offset, uint8_t size)
@@ -135,8 +134,7 @@ void extract_acpi(void)
if (!n)
return;
- fw_cfg_file_select(id);
- fw_cfg_read(script, n);
+ fw_cfg_read_file(id, script, n);
for (i = 0; i < ARRAY_SIZE(script); i++) {
struct loader_cmd *s = &script[i];