From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15343 invoked by alias); 2 Dec 2008 22:25:53 -0000 Received: (qmail 15307 invoked by uid 22791); 2 Dec 2008 22:25:53 -0000 X-Spam-Level: * X-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_63,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Dec 2008 22:25:05 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1L7dfy-0000SA-A4 for ecos-patches@sources.redhat.com; Tue, 02 Dec 2008 22:25:02 +0000 Received: from 64.251.14.41 ([64.251.14.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Dec 2008 22:25:02 +0000 Received: from grante by 64.251.14.41 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Dec 2008 22:25:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: ecos-patches@sources.redhat.com From: Grant Edwards Subject: How to deal with data cache in flash routines? Date: Tue, 02 Dec 2008 22:25:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 64.251.14.41 User-Agent: slrn/pre0.9.9-102 (Linux) X-IsSubscribed: yes Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2008-12/txt/msg00011.txt.bz2 I'm using the standard strata flash driver on an Altera NIOS2 platform, and everything worked fine until I enabled the data cache in my processor configuration. Now none of the flash routines work. HAL_DCACHE_DISABLE() does nothing since there's no way to disable the cache in the NIOS2 processor. However, the cache can be bypassed by setting bit 31 in the address used to access the memory. After browsing through the sources, it looks line one tells the flash routines to do that by defining FLASH_P2V()? If so, do I do that in my strata.inl file for the target? -- Grant Edwards grante Yow! How many retured at bricklayers from FLORIDA visi.com are out purchasing PENCIL SHARPENERS right NOW??