From patchwork Fri May 8 14:51:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 22605 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n48FE59p024951 for ; Fri, 8 May 2009 15:14:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762321AbZEHPNZ (ORCPT ); Fri, 8 May 2009 11:13:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762216AbZEHPNY (ORCPT ); Fri, 8 May 2009 11:13:24 -0400 Received: from cvs.mpc-ogw.co.uk ([81.2.99.171]:1651 "EHLO warcop.mpc-data.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1762020AbZEHPNX (ORCPT ); Fri, 8 May 2009 11:13:23 -0400 X-Greylist: delayed 1499 seconds by postgrey-1.27 at vger.kernel.org; Fri, 08 May 2009 11:13:22 EDT Received: from [10.150.18.187] (quercus-bis.mpc-data.co.uk [10.150.18.187]) by warcop.mpc-data.co.uk (8.12.9p2/8.12.9) with ESMTP id n48EptMM004010; Fri, 8 May 2009 15:51:55 +0100 (BST) (envelope-from pgriffin@mpc-data.co.uk) Subject: [PATCH] Add UBC trap vector for SH2A From: Peter Griffin To: lethal@linux-sh.org Cc: linux-sh@vger.kernel.org Date: Fri, 08 May 2009 15:51:51 +0100 Message-Id: <1241794311.16311.33.camel@quercus-bis> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org >From bc37bbf2a11cfc3ffa02b181695d769adec7584c Mon Sep 17 00:00:00 2001 From: Peter Griffin Date: Fri, 8 May 2009 15:03:30 +0100 Subject: [PATCH] Add UBC trap vector for SH2A Signed-off-by: Peter Griffin --- arch/sh/kernel/traps_32.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/sh/kernel/traps_32.c b/arch/sh/kernel/traps_32.c index 30ca9c5..2721bdf 100644 --- a/arch/sh/kernel/traps_32.c +++ b/arch/sh/kernel/traps_32.c @@ -34,6 +34,7 @@ # define TRAP_ILLEGAL_SLOT_INST 6 # define TRAP_ADDRESS_ERROR 9 # ifdef CONFIG_CPU_SH2A +# define TRAP_UBC 12 # define TRAP_FPU_ERROR 13 # define TRAP_DIVZERO_ERROR 17 # define TRAP_DIVOVF_ERROR 18 @@ -849,6 +850,10 @@ void __init trap_init(void) #endif #endif +#ifdef TRAP_UBC + set_exception_table_vec(TRAP_UBC, break_point_trap); +#endif + /* Setup VBR for boot cpu */ per_cpu_trap_init(); }