aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/signal_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/signal_32.c')
-rw-r--r--arch/powerpc/kernel/signal_32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c
index bebdf1a1a540..3f220d93c72f 100644
--- a/arch/powerpc/kernel/signal_32.c
+++ b/arch/powerpc/kernel/signal_32.c
@@ -1309,7 +1309,7 @@ int sys_debug_setcontext(struct ucontext __user *ctx,
1309 unsigned char tmp; 1309 unsigned char tmp;
1310 unsigned long new_msr = regs->msr; 1310 unsigned long new_msr = regs->msr;
1311#ifdef CONFIG_PPC_ADV_DEBUG_REGS 1311#ifdef CONFIG_PPC_ADV_DEBUG_REGS
1312 unsigned long new_dbcr0 = current->thread.dbcr0; 1312 unsigned long new_dbcr0 = current->thread.debug.dbcr0;
1313#endif 1313#endif
1314 1314
1315 for (i=0; i<ndbg; i++) { 1315 for (i=0; i<ndbg; i++) {
@@ -1324,7 +1324,7 @@ int sys_debug_setcontext(struct ucontext __user *ctx,
1324 } else { 1324 } else {
1325 new_dbcr0 &= ~DBCR0_IC; 1325 new_dbcr0 &= ~DBCR0_IC;
1326 if (!DBCR_ACTIVE_EVENTS(new_dbcr0, 1326 if (!DBCR_ACTIVE_EVENTS(new_dbcr0,
1327 current->thread.dbcr1)) { 1327 current->thread.debug.dbcr1)) {
1328 new_msr &= ~MSR_DE; 1328 new_msr &= ~MSR_DE;
1329 new_dbcr0 &= ~DBCR0_IDM; 1329 new_dbcr0 &= ~DBCR0_IDM;
1330 } 1330 }
@@ -1359,7 +1359,7 @@ int sys_debug_setcontext(struct ucontext __user *ctx,
1359 the user is really doing something wrong. */ 1359 the user is really doing something wrong. */
1360 regs->msr = new_msr; 1360 regs->msr = new_msr;
1361#ifdef CONFIG_PPC_ADV_DEBUG_REGS 1361#ifdef CONFIG_PPC_ADV_DEBUG_REGS
1362 current->thread.dbcr0 = new_dbcr0; 1362 current->thread.debug.dbcr0 = new_dbcr0;
1363#endif 1363#endif
1364 1364
1365 if (!access_ok(VERIFY_READ, ctx, sizeof(*ctx)) 1365 if (!access_ok(VERIFY_READ, ctx, sizeof(*ctx))