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

Celeste Liu
2024-06-27T09:35:40Z

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.