riscv: update the definition of intptr_t/uintptr_t
These RISC-V ABIs defined by GCC : ilp32 ilp32d ilp32f lp64 lp64d lp64f. Through this we know that the length of the long's bit is equal to pointer. So update this code. This's more flexible. Change-Id: I16e1a2c12c6034df75dc360b65acb1b6affec49b Signed-off-by: Xiang Wang <wxjstz@126.com> Reviewed-on: https://review.coreboot.org/27768 Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
b69ae97ada
commit
0e788c985c
|
@ -70,8 +70,8 @@ typedef uint8_t bool;
|
|||
#define false 0
|
||||
|
||||
/* Types for `void *' pointers. */
|
||||
typedef s64 intptr_t;
|
||||
typedef u64 uintptr_t;
|
||||
typedef long intptr_t;
|
||||
typedef unsigned long uintptr_t;
|
||||
|
||||
/* FIXME: This is used in some print code and may be removed in the future. */
|
||||
#define PRIu64 "llu"
|
||||
|
|
Loading…
Reference in New Issue