Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-31 Thread Xiang W
Thank you, I understand. Regards, Xiang W Heinrich Schuchardt 于2023年10月31日周二 20:09写道: > > On 10/31/23 09:53, Xiang W wrote: > > setjmp can be called in set_resume. > > Unfortunately this is not possible. A longjmp buffer only stores > register values and not the stack content. > > Let's assume t

Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-31 Thread Heinrich Schuchardt
On 10/31/23 09:53, Xiang W wrote: setjmp can be called in set_resume. Unfortunately this is not possible. A longjmp buffer only stores register values and not the stack content. Let's assume that setjmp() is moved into set_resume(): Let a function call set_resume(). The caller's address wil

Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-31 Thread Xiang W
setjmp can be called in set_resume. Regards, Xiang W Heinrich Schuchardt 于2023年10月29日周日 16:56写道: > > If CSRs like seed are readable by S-mode, may not be determinable by > S-mode. For safe driver probing allow to resume via a longjmp after an > exception. > > Signed-off-by: Heinrich Schuchardt

Re: [RFC v2 1/2] riscv: allow resume after exception

2023-10-30 Thread Leo Liang
On Sun, Oct 29, 2023 at 09:45:32AM +0100, Heinrich Schuchardt wrote: > If CSRs like seed are readable by S-mode, may not be determinable by > S-mode. For safe driver probing allow to resume via a longjmp after an > exception. > > Signed-off-by: Heinrich Schuchardt > --- > v2: > new patch >