From patchwork Tue Oct 13 09:48:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentin R Sitsikov X-Patchwork-Id: 53349 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 n9D9ltsC024544 for ; Tue, 13 Oct 2009 09:47:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751198AbZJMJlD (ORCPT ); Tue, 13 Oct 2009 05:41:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755317AbZJMJlD (ORCPT ); Tue, 13 Oct 2009 05:41:03 -0400 Received: from david.siemens.de ([192.35.17.14]:21860 "EHLO david.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751198AbZJMJlC (ORCPT ); Tue, 13 Oct 2009 05:41:02 -0400 Received: from mail2.siemens.de (localhost [127.0.0.1]) by david.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id n9D9eCZr014645; Tue, 13 Oct 2009 11:40:12 +0200 Received: from [163.242.202.55] ([163.242.202.55]) by mail2.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id n9D9eBKX023267; Tue, 13 Oct 2009 11:40:12 +0200 Message-ID: <4AD44CF4.7050802@siemens.com> Date: Tue, 13 Oct 2009 13:48:36 +0400 From: Valentin R Sitsikov User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: SH-Linux CC: Paul Mundt Subject: [PATCH] sh4: using PAGE_SIZE during flushing cache related to a page Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 56dd55a..2cb050d 100644 --- a/arch/sh/mm/cache-sh4.c +++ b/arch/sh/mm/cache-sh4.c @@ -27,7 +27,7 @@ */ #define MAX_ICACHE_PAGES 32 -static void __flush_cache_4096(unsigned long addr, unsigned long phys, +static void __flush_cache_page(unsigned long addr, unsigned long phys, unsigned long exec_offset); /* @@ -82,7 +82,7 @@ static void __uses_jump_to_uncached sh4_flush_icache_range(void *args) local_irq_restore(flags); } -static inline void flush_cache_4096(unsigned long start, +static inline void _flush_cache_page(unsigned long start, unsigned long phys) {