sparc: write through switched_from in arch_switch()
Write through switched_from in arch_switch() as required by the
switch protocol.
Also restructure the implementation to better match the template in
kernel_arch_interface.h, by removing a wrapper routine and instead
use CONTAINER_OF().
Fixes #32197
Signed-off-by:
Martin Åberg <martin.aberg@gaisler.com>
Loading
Please sign in to comment