<p>Xiang Wang has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27768">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">riscv: update the definition of intptr_t/uintptr_t<br><br>This abi of RISC-V is defined by gcc:ilp32 ilp32d ilp32f lp64 lp64d lp64f. Through this we know that the length of the long bit is equal to point. So update this code. This's more flexible.<br><br>Change-Id: I16e1a2c12c6034df75dc360b65acb1b6affec49b<br>Signed-off-by: Xiang Wang <wxjstz@126.com><br>---<br>M src/arch/riscv/include/stdint.h<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/68/27768/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/arch/riscv/include/stdint.h b/src/arch/riscv/include/stdint.h</span><br><span>index 1980866..76f0d1b 100644</span><br><span>--- a/src/arch/riscv/include/stdint.h</span><br><span>+++ b/src/arch/riscv/include/stdint.h</span><br><span>@@ -70,8 +70,8 @@</span><br><span> #define false     0</span><br><span> </span><br><span> /* Types for `void *' pointers.  */</span><br><span style="color: hsl(0, 100%, 40%);">-typedef s64             intptr_t;</span><br><span style="color: hsl(0, 100%, 40%);">-typedef u64            uintptr_t;</span><br><span style="color: hsl(120, 100%, 40%);">+typedef long intptr_t;</span><br><span style="color: hsl(120, 100%, 40%);">+typedef unsigned long uintptr_t;</span><br><span> </span><br><span> /* FIXME: This is used in some print code and may be removed in the future. */</span><br><span> #define PRIu64  "llu"</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27768">change 27768</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27768"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I16e1a2c12c6034df75dc360b65acb1b6affec49b </div>
<div style="display:none"> Gerrit-Change-Number: 27768 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Xiang Wang <wxjstz@126.com> </div>