x86: Use unsigned long for address in table generation
We should use unsigned long rather than u32 for addresses. Update this so that the table-generation code builds correctly on 64-bit machines. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ static LIST_HEAD(fw_list);
|
||||
* be ignored.
|
||||
* @return: 0 on success, or negative value on failure
|
||||
*/
|
||||
static int bios_linker_allocate(struct bios_linker_entry *entry, u32 *addr)
|
||||
static int bios_linker_allocate(struct bios_linker_entry *entry, ulong *addr)
|
||||
{
|
||||
uint32_t size, align;
|
||||
struct fw_file *file;
|
||||
@@ -147,7 +147,7 @@ static int bios_linker_add_checksum(struct bios_linker_entry *entry)
|
||||
}
|
||||
|
||||
/* This function loads and patches ACPI tables provided by QEMU */
|
||||
u32 write_acpi_tables(u32 addr)
|
||||
ulong write_acpi_tables(ulong addr)
|
||||
{
|
||||
int i, ret = 0;
|
||||
struct fw_file *file;
|
||||
|
||||
Reference in New Issue
Block a user