diff options
author | Guo Ren | 2020-03-31 23:45:52 +0800 |
---|---|---|
committer | Guo Ren | 2020-04-01 00:06:40 +0800 |
commit | 9c0e343d7654a329d1f9b53d253cbf7fb6eff85d (patch) | |
tree | a51bfcdbb5d8191b5a1414f9b798b4f38f0e8efa /arch/csky/include | |
parent | dd7c983e78a28ff0b22f8bcf32a303b4f79cb318 (diff) |
csky: Fixup get wrong psr value from phyical reg
We should get psr value from regs->psr in stack, not directly get
it from phyiscal register then save the vector number in
tsk->trap_no.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Diffstat (limited to 'arch/csky/include')
-rw-r--r-- | arch/csky/include/asm/processor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/csky/include/asm/processor.h b/arch/csky/include/asm/processor.h index 21e0bd5293dd..c6bcd7f7c720 100644 --- a/arch/csky/include/asm/processor.h +++ b/arch/csky/include/asm/processor.h @@ -43,6 +43,7 @@ extern struct cpuinfo_csky cpu_data[]; struct thread_struct { unsigned long ksp; /* kernel stack pointer */ unsigned long sr; /* saved status register */ + unsigned long trap_no; /* saved status register */ /* FPU regs */ struct user_fp __aligned(16) user_fp; |