linux-mips
[Top] [All Lists]

Re: what is the purpose of the following LE->BE patch to arch/mips/inclu

To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Subject: Re: what is the purpose of the following LE->BE patch to arch/mips/include/asm/io.h?
From: Manuel Lauss <manuel.lauss@gmail.com>
Date: Sat, 21 Feb 2015 09:23:39 +0100
Cc: Matt Turner <mattst88@gmail.com>, "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=nY6npJhfNKnNQe0SMlZHfRUV9wpXOyxGg370MyQ1H8I=; b=OV5+mjZsTziZEkmJ1fGpz6YYd4pFVv//mEYP1KPAMPS7e4xMjSFkGm6GzzCIIw1PnS Ya7SSVWu0eLjLMl8uFkO6HvUQKzWZLpCKmblApMv5p9jW3Amhc1ioZndFsf/Hgzx6jbA 06oSSdXtYxQVEX6SPudq2RUOKXu3ZCzlJ0nWGAneyzg0F0ydKUZrHlwtXlUOjr+EULI0 smITBLhmyGjB4yoqh4ppIVMyiZgp7ctaez3yACg8oMvv6ruRhCAKv2VJc5/BhPz7or5u TH7TLRc4dZNTE3NASAEt/6vg5NB7YjeSjagOw58+nVdn6gbVE9TecGkWY0CqXtefGDlX T/Wg==
In-reply-to: <alpine.LFD.2.11.1502210258580.5732@localhost>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <alpine.LFD.2.11.1502200445290.26212@localhost> <CAEdQ38HVxBug9ukgE1oXLo_e+8FDB_yuY0vn1d84puoThhdYCA@mail.gmail.com> <CAEdQ38F5jWX8Ujs4Jj6scxPAqtZw55gn4exL_rj9HCmf5YJgCA@mail.gmail.com> <alpine.LFD.2.11.1502210258580.5732@localhost>
Sender: linux-mips-bounce@linux-mips.org
On Sat, Feb 21, 2015 at 9:11 AM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>
>   has anyone else ever needed to do this? or is this some weird,
> one-off hack that perhaps applies *only* to some bizarre feature of
> this board?

My guess isthat the peripherals attached to the internal bus
only undestand little endian, and the bus doesn't do byte swaps when
the core isn't configured for LE. I.e. the BE feature is only
implemented in the mips core and the rest was designed for LE only.

Manuel

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