From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18712 invoked by alias); 2 Dec 2008 22:30:58 -0000 Received: (qmail 18681 invoked by uid 22791); 2 Dec 2008 22:30:57 -0000 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:30:09 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1L7dko-0000ew-SX for ecos-discuss@sources.redhat.com; Tue, 02 Dec 2008 22:30: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:30: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:30:02 +0000 To: ecos-discuss@sources.redhat.com From: Grant Edwards Date: Tue, 02 Dec 2008 23:17:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: slrn/pre0.9.9-102 (Linux) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Dealing with cache in flash drivers X-SW-Source: 2008-12/txt/msg00029.txt.bz2 [I accidentally sent this in the patches list previously.] 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?? -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss