]> git.baikalelectronics.ru Git - kernel.git/commit
csky: Fixup wrong pt_regs size
authorGuo Ren <ren_guo@c-sky.com>
Thu, 24 Jan 2019 14:16:31 +0000 (22:16 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Wed, 13 Feb 2019 01:48:14 +0000 (09:48 +0800)
commite5004484f3c83d4fb825df4094cd89cd77e60fc7
treee3cde6584c453732a093d055134f6f21c8f1ff6e
parent287fa07e0784c7c59cd7869181fd1652e11daddd
csky: Fixup wrong pt_regs size

The bug is from commit ab06f75f549b ("csky: bugfix gdb coredump error.")

We change the ELF_NGREG to ELF_NGREG - 2 to fit gdb&gcc define, but forgot
modify ptrace regset.
Now coredump use ELF_NRGEG to parse GPRs and ptrace use pt_regs_regset, so
there are two different reg_sets for userspace.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
arch/csky/kernel/ptrace.c