[PATCH v5] riscv: entry: set a0 = -ENOSYS only when syscall != -1

Celeste Liu coelacanthushex at gmail.com
Thu Jun 27 02:35:34 PDT 2024


On 2024-06-27 16:10, Andreas Schwab wrote:

> On Jun 27 2024, Celeste Liu wrote:
> 
>> suggestion and we found cast long to ulong is implementation-defined
>> behavior in C
> 
> There is nothing implementaton-defined in a long to ulong conversion.
> 

Ok, I misremembered. long to ulong is modulo arithmetic but ulong to long
is implementation-defined behavior. There is no type cast issue.



More information about the linux-riscv mailing list