Re: [PATCH v5] riscv: entry: set a0 = -ENOSYS only when syscall != -1
From: Celeste Liu
Date: Thu Jun 27 2024 - 05:35:45 EST
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.