[Top] [All Lists]

Re: Broadcom Swarm support

To: Kaz Kylheku <>
Subject: Re: Broadcom Swarm support
From: Ralf Baechle <>
Date: Sat, 27 Jun 2009 16:49:02 +0100
Cc: Aurelien Jarno <>,
In-reply-to: <DDFD17CC94A9BD49A82147DDF7D545C501C3539B@exchange.ZeugmaSystems.local>
Original-recipient: rfc822;
References: <> <DDFD17CC94A9BD49A82147DDF7D545C501C3539B@exchange.ZeugmaSystems.local>
User-agent: Mutt/1.5.18 (2008-05-17)
On Wed, Jun 24, 2009 at 03:18:24PM -0700, Kaz Kylheku wrote:

> +void __flush_icache_page(struct vm_area_struct *vma, struct page *page)
> +{
> +     if (vma->vm_flags & VM_EXEC)
> +             flush_icache_range((unsigned long) page_address(page),
> +}

Flush_icache_range takes two arguments, start and end address.  Both
addresses are the virtual addresses at which the code will run.  Iow both
arguments are wrong.  The result is that for start address values normally
passed to flush_icache_range it will optimize the flush into a full cache
flush of I-cache and D-cache - iow you're lucky.


<Prev in Thread] Current Thread [Next in Thread>