<p>Jonathan Neuschäfer has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/c/coreboot/+/30168">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">[RFC] arch/riscv/stdint.h: Check the size of (u)intptr_t<br><br>TODO: Since (u)intptr_t and these invariants are not architecture<br>specific, the assertions should probably be moved to a central place,<br>but where?<br><br>Change-Id: I5583ba58eeca3a37229b41b6517adfc12b2fddce<br>Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net><br>---<br>M src/arch/riscv/include/stdint.h<br>1 file changed, 2 insertions(+), 0 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/30168/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 76f0d1b..0062a8e 100644</span><br><span>--- a/src/arch/riscv/include/stdint.h</span><br><span>+++ b/src/arch/riscv/include/stdint.h</span><br><span>@@ -72,6 +72,8 @@</span><br><span> /* Types for `void *' pointers.  */</span><br><span> typedef long intptr_t;</span><br><span> typedef unsigned long uintptr_t;</span><br><span style="color: hsl(120, 100%, 40%);">+_Static_assert(sizeof(intptr_t) == sizeof(void *), "Size of intptr_t is wrong");</span><br><span style="color: hsl(120, 100%, 40%);">+_Static_assert(sizeof(uintptr_t) == sizeof(void *), "Size of uintptr_t is wrong");</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/c/coreboot/+/30168">change 30168</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/c/coreboot/+/30168"/><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-Change-Id: I5583ba58eeca3a37229b41b6517adfc12b2fddce </div>
<div style="display:none"> Gerrit-Change-Number: 30168 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Jonathan Neuschäfer <j.neuschaefer@gmx.net> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>