From patchwork Tue Jun 9 11:22:00 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Eisele X-Patchwork-Id: 28300 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id A5A0AB70C6 for ; Tue, 9 Jun 2009 21:19:39 +1000 (EST) Received: by ozlabs.org (Postfix) id 967EDDDD0B; Tue, 9 Jun 2009 21:19:39 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 335F8DDD01 for ; Tue, 9 Jun 2009 21:19:39 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754146AbZFILTI (ORCPT ); Tue, 9 Jun 2009 07:19:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754617AbZFILTI (ORCPT ); Tue, 9 Jun 2009 07:19:08 -0400 Received: from mail176c2.megamailservers.com ([69.49.111.76]:47787 "EHLO mail176c2.megamailservers.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754146AbZFILTG (ORCPT ); Tue, 9 Jun 2009 07:19:06 -0400 X-Authenticated-User: konrad.gaisler.com Received: from [192.168.0.29] (c-10a5e155.260-1-64736c10.cust.bredbandsbolaget.se [85.225.165.16]) (authenticated bits=0) by mail176c2.megamailservers.com (8.13.6/8.13.1) with ESMTP id n59BJ35n029942 for ; Tue, 9 Jun 2009 07:19:05 -0400 Message-ID: <4A2E45D8.7080609@gaisler.com> Date: Tue, 09 Jun 2009 13:22:00 +0200 From: Konrad Eisele User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20080829 SeaMonkey/1.1.12 MIME-Version: 1.0 To: sparclinux@vger.kernel.org Subject: [PATCH 2/7] Redefine MMU register access asi if CONFIG_LEON References: <4A2E36A6.4050008@gaisler.com> In-Reply-To: <4A2E36A6.4050008@gaisler.com> Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org From fb5efd06d7e8ed5bc09b1be66cda8167342a2737 Mon Sep 17 00:00:00 2001 From: Konrad Eisele Date: Tue, 9 Jun 2009 12:51:43 +0200 Subject: [PATCH 2/7] Redefine MMU register access asi if CONFIG_LEON is defined Signed-off-by: Konrad Eisele --- arch/sparc/include/asm/asi.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/sparc/include/asm/asi.h b/arch/sparc/include/asm/asi.h index 74703c5..aa498f8 100644 --- a/arch/sparc/include/asm/asi.h +++ b/arch/sparc/include/asm/asi.h @@ -259,4 +259,9 @@ #define ASI_BLK_S 0xf1 /* Secondary, bl #define ASI_BLK_PL 0xf8 /* Primary, blk ld/st, little */ #define ASI_BLK_SL 0xf9 /* Secondary, blk ld/st, little */ +#ifdef CONFIG_LEON +#undef ASI_M_MMUREGS +#define ASI_M_MMUREGS 0x19 +#endif /* CONFIG_LEON */ + #endif /* _SPARC_ASI_H */