Skip to content
Commit f8e17c17 authored by Guo Ren's avatar Guo Ren
Browse files

csky: Set regs->usp to kernel sp, when the exception is from kernel



In the past, we didn't care about kernel sp when saving pt_reg. But in some
cases, we still need pt_reg->usp to represent the kernel stack before enter
exception.

For cmpxhg in atomic.S, we need save and restore usp for above.

Signed-off-by: default avatarGuo Ren <guoren@linux.alibaba.com>
parent 7f4a5673
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment