diff options
author | Simon Glass <sjg@chromium.org> | 2017-01-16 17:03:35 +0300 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2017-02-06 06:38:46 +0300 |
commit | 42fd8c19b58fe8f8fe7559ea53b1cef12fc06240 (patch) | |
tree | b06a899ecdd9ec87f8415518e98ed14e08832431 /include | |
parent | 0ec28e026606fa579e9c8639f82843fb6a60337a (diff) | |
download | u-boot-42fd8c19b58fe8f8fe7559ea53b1cef12fc06240.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/smbios.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/smbios.h b/include/smbios.h index d582d4f7ab..c24d00e38d 100644 --- a/include/smbios.h +++ b/include/smbios.h @@ -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_ */ |