From b0c4fae44a549074e08d7f81779c7f3d9dcb1eb2 Mon Sep 17 00:00:00 2001 From: Macpaul Lin Date: Sun, 11 Mar 2012 16:30:18 +0800 Subject: nds32: fix ptrace and interrupt register overflow Fix ptrace and interrupt register overflow warning. Add missing P0 and P1 (r26 and r27) into register lists. These register are usually used in OS. Signed-off-by: Macpaul Lin --- arch/nds32/include/asm/ptrace.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/nds32/include/asm') diff --git a/arch/nds32/include/asm/ptrace.h b/arch/nds32/include/asm/ptrace.h index 4336083..ee181b2 100644 --- a/arch/nds32/include/asm/ptrace.h +++ b/arch/nds32/include/asm/ptrace.h @@ -38,6 +38,8 @@ struct pt_regs { NDS32_REG d1hi; NDS32_REG d1lo; NDS32_REG r[26]; /* r0 - r25 */ + NDS32_REG p0; /* r26 - used by OS */ + NDS32_REG p1; /* r27 - used by OS */ NDS32_REG fp; /* r28 */ NDS32_REG gp; /* r29 */ NDS32_REG lp; /* r30 */ -- cgit v1.1