summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJessica Clarke <[email protected]>2025-07-10 00:29:29 +0100
committerAnup Patel <[email protected]>2025-07-22 15:54:27 +0530
commit079bf6f0f93d01c8be3429d9a8a867ef84501557 (patch)
tree33424400565645d877d4bdbb71d8bd0fa29a3438 /include
parentffd3ed976d88fa5cda56d9d2c139557c69eec5d8 (diff)
firmware: Replace sole uses of REGBYTES with __SIZEOF_LONG__
This code has nothing to do with the ISA's registers, it's about the format of ELF relocations. As such, __SIZEOF_LONG__, being a language / ABI-level property, is a more appropriate constant to use. This also makes it easier to support CHERI, where general-purpose registers are extended to be capabilities, not just integers, and so the register size is not the same as the machine word size. This also happens to make it more correct for RV64ILP32, where the registers are 64-bit integers but the ABI is 32-bit (both for long and for the ELF format), though properly supporting that ABI is not part of the motivation here, just a consequence of improving the code for CHERI. Signed-off-by: Jessica Clarke <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions