linux-mips
[Top] [All Lists]

Re: [PATCH V2 5/8] MIPS: BMIPS: Introduce bmips.h

To: Kevin Cernekee <cernekee@gmail.com>
Subject: Re: [PATCH V2 5/8] MIPS: BMIPS: Introduce bmips.h
From: Ralf Baechle <ralf@linux-mips.org>
Date: Fri, 11 Nov 2011 13:32:14 +0000
Cc: linux-mips@linux-mips.org
In-reply-to: <82d0f7976bd482696b7dfefe4953859b@localhost>
References: <5f9666eb295ce196b2a9688afab07dea@localhost> <82d0f7976bd482696b7dfefe4953859b@localhost>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Nov 10, 2011 at 10:30:28PM -0800, Kevin Cernekee wrote:

> +     __asm__ __volatile__(
> +             ".set push\n"
> +             ".set noreorder\n"
> +             "cache %1, 0(%2)\n"
> +             "sync\n"
> +             "ssnop\n"

Ssnop was added relatively recently to gas and the kernel supports building
with much older toolchains.  To get around this <asm/hazard.h> defines
a _ssnop macro.

  Ralf

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