xiaoxiang781216 commented on PR #5985:
URL: https://github.com/apache/incubator-nuttx/pull/5985#issuecomment-1088752086
> @xiaoxiang781216 can you take a look when you have time. I marked this as
draft as it does not compile yet / needs fixing but the basic structure should
be in place.
>
> The question I have: Do you think it's appropriate for me to force other
RISC-V targets that use an IRQ stack to use the percpu structure, or should I
wrap the IRQ stack getter, so that it can e.g.:
>
> ```
> uintptr_t riscv_irqstack(void)
> {
> #if PERCPU_COMPILED
> return riscv_percpu_get_irqstack
> #else
> return (uintptr_t) &g_intstacktop;
> #endif
> }
> ```
>
> Or something along those lines ?
but all arch call the chip specific setintstack macro setup the interrupt
stack. It work very well, do you have any problem with it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]