Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757909AbXFSIrV (ORCPT ); Tue, 19 Jun 2007 04:47:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756323AbXFSIp0 (ORCPT ); Tue, 19 Jun 2007 04:45:26 -0400 Received: from mtagate3.de.ibm.com ([195.212.29.152]:55643 "EHLO mtagate3.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754667AbXFSIpP (ORCPT ); Tue, 19 Jun 2007 04:45:15 -0400 Message-Id: <20070619084643.095486838@de.ibm.com> References: <20070619084516.457715754@de.ibm.com> User-Agent: quilt/0.46-1 Date: Tue, 19 Jun 2007 10:45:22 +0200 From: Martin Schwidefsky To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Cc: Heiko Carstens , Martin Schwidefsky Subject: [patch 6/6] Add oops_enter()/oops_exit() calls to die(). Content-Disposition: inline; filename=006-oops-enter.diff Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1853 Lines: 63 From: Heiko Carstens This is mainly to switch off all potentially debugging stuff that won't report anything useful after an oops happened. Besided that setting pause_on_oops will work too, but doesn't make too much sense on s390. Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- include/asm-s390/processor.h | 5 +++++ include/asm-s390/ptrace.h | 9 +-------- 2 files changed, 6 insertions(+), 8 deletions(-) Index: quilt-2.6/include/asm-s390/processor.h =================================================================== --- quilt-2.6.orig/include/asm-s390/processor.h +++ quilt-2.6/include/asm-s390/processor.h @@ -216,6 +216,11 @@ static inline void cpu_relax(void) barrier(); } +static inline void psw_set_key(unsigned int key) +{ + asm volatile("spka 0(%0)" : : "d" (key)); +} + /* * Set PSW to specified value. */ Index: quilt-2.6/include/asm-s390/ptrace.h =================================================================== --- quilt-2.6.orig/include/asm-s390/ptrace.h +++ quilt-2.6/include/asm-s390/ptrace.h @@ -470,14 +470,7 @@ struct user_regs_struct #define regs_return_value(regs)((regs)->gprs[2]) #define profile_pc(regs) instruction_pointer(regs) extern void show_regs(struct pt_regs * regs); -#endif - -static inline void -psw_set_key(unsigned int key) -{ - asm volatile("spka 0(%0)" : : "d" (key)); -} - +#endif /* __KERNEL__ */ #endif /* __ASSEMBLY__ */ #endif /* _S390_PTRACE_H */ -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/