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:
Simon Glass authored and Bin Meng committed 2017-02-06 11:38:46 +08:00
1 parent 0ec28e0266
commit 42fd8c19b5
13 files changed
+29 -36

No files matched your search

+2 -2
View File
@@ -225,7 +225,7 @@ static inline void fill_smbios_header(void *table, int type,
* @handle: the structure's handle, a unique 16-bit number
* @return: size of the structure
*/
typedef int (*smbios_write_type)(uintptr_t *addr, int handle);
typedef int (*smbios_write_type)(ulong *addr, int handle);
/**
* write_smbios_table() - Write SMBIOS table
@@ -235,6 +235,6 @@ typedef int (*smbios_write_type)(uintptr_t *addr, int handle);
* @addr: start address to write SMBIOS table
* @return: end address of SMBIOS table
*/
uintptr_t write_smbios_table(uintptr_t addr);
ulong write_smbios_table(ulong addr);
#endif /* _SMBIOS_H_ */