[PATCH] RISC-V: Add support for Ztso

Palmer Dabbelt palmer at rivosinc.com
Fri Sep 16 07:09:48 PDT 2022


On Thu, 01 Sep 2022 23:39:15 PDT (-0700), schwab at linux-m68k.org wrote:
> On Sep 01 2022, Palmer Dabbelt wrote:
>
>> @@ -31,10 +32,23 @@
>>  #define ELF_DATA	ELFDATA2LSB
>>
>>  /*
>> - * This is used to ensure we don't load something for the wrong architecture.
>> + * Binaries that assume TSO cannot be correctly run on non-TSO systems, so
>> + * prevent them from even being loaded.
>> + */
>> +#define EF_RISCV_TSO	0x0010
>
> That should probably be defined in <asm/elf.h>.

Sorry, not sure if I'm missing something here?  This is 
<arch/riscv/include/asm/elf.h>, we just don't have any ELF flags defined 
for RISC-V yet in the kernel because we don't use them.



More information about the linux-riscv mailing list