diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-06 14:44:22 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-09-06 15:57:15 +0200 |
commit | 96dbb2c0a24fdc6bbe4d8d834f0b879e01fdcae3 (patch) | |
tree | 47fc15d16e1467dc2ebde10aa1a1a174cea90d42 /tables.c | |
parent | 751e77e06ec147046b4eae76777dc2e22774aee0 (diff) | |
download | qboot-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.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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]; |