Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Feb 2016 21:04:16 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Mori Hiroki <yamori813@yahoo.co.jp>
Cc:        "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: CFI Byte order problem
Message-ID:  <CANCZdfqPJEsRAKwt93vvyy9Uf9cQtYRien85GHUSOLBJGWT_ew@mail.gmail.com>
In-Reply-To: <658790.3177.qm@web101716.mail.ssk.yahoo.co.jp>
References:  <658790.3177.qm@web101716.mail.ssk.yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 4, 2016 at 8:31 AM, Mori Hiroki <yamori813@yahoo.co.jp> wrote:

> Hi.
>
> I build Current for AR9132. But don't recognize cfi flash memory.
> I make debug write and found byte endian issue. I seem AR9132
> is byte swap in cfi flash memory by default. Current cif code is
> byte swap on Big Endian machine. This is conflict.
>
> I make workaound by option for this problem.
>
>
> https://github.com/yamori813/freebsd/commit/2da6531d24e0d689763f25055420078a63a08baa


Why the #ifdef? Why not always swap on big endian platforms?

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqPJEsRAKwt93vvyy9Uf9cQtYRien85GHUSOLBJGWT_ew>