[PATCH] riscv: add icache flush for nommu sigreturn trampoline
Christoph Hellwig
hch at infradead.org
Wed Apr 5 22:33:25 PDT 2023
On Thu, Apr 06, 2023 at 02:11:04AM +0200, Mathis Salmen wrote:
> + /* Make sure the two instructions are pushed to icache. */
> + flush_icache_range((uintptr_t)&frame->sigreturn_code,
> + (uintptr_t)&frame->sigreturn_code + sizeof(frame->sigreturn_code));
> regs->ra = (unsigned long)&frame->sigreturn_code;
Please add a local variable for the in-casted value of
&frame->sigreturn_code to actually make this readable.
More information about the linux-riscv
mailing list