From bdb5ee3064d5ae786b0bcb6cf6ff4e3554a72990 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 8 Jan 2010 15:25:38 +0100 Subject: roms: minor fixes and cleanups. Changes: - Drop extra file argument from rom_add_file(). - Drop fw_dir check in do_info_roms, we allways have a dir name. - code style fixes. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- hw/loader.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hw/loader.h') diff --git a/hw/loader.h b/hw/loader.h index 77beb0e..698160b 100644 --- a/hw/loader.h +++ b/hw/loader.h @@ -19,7 +19,8 @@ void pstrcpy_targphys(const char *name, target_phys_addr_t dest, int buf_size, const char *source); -int rom_add_file(const char *file, const char *fw_dir, const char *fw_file, + +int rom_add_file(const char *file, const char *fw_dir, target_phys_addr_t addr); int rom_add_blob(const char *name, const void *blob, size_t len, target_phys_addr_t addr); @@ -30,7 +31,7 @@ void *rom_ptr(target_phys_addr_t addr); void do_info_roms(Monitor *mon); #define rom_add_file_fixed(_f, _a) \ - rom_add_file(_f, NULL, NULL, _a) + rom_add_file(_f, NULL, _a) #define rom_add_blob_fixed(_f, _b, _l, _a) \ rom_add_blob(_f, _b, _l, _a) -- cgit v1.1