Date: Fri, 5 Feb 2016 13:17:48 +0900 (JST) From: Mori Hiroki <yamori813@yahoo.co.jp> To: Warner Losh <imp@bsdimp.com> Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: CFI Byte order problem Message-ID: <915990.4597.qm@web101713.mail.ssk.yahoo.co.jp> In-Reply-To: <CANCZdfqPJEsRAKwt93vvyy9Uf9cQtYRien85GHUSOLBJGWT_ew@mail.gmail.com> References: <658790.3177.qm@web101716.mail.ssk.yahoo.co.jp> <CANCZdfqPJEsRAKwt93vvyy9Uf9cQtYRien85GHUSOLBJGWT_ew@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I don't have=A0AR9132 datasheet. But Some other Atheros datasheet=A0=0Atell= to know=A0Byteswap Control register. I think if=A0Atheros open=0Athe=A0AR9= 132=A0datasheet, then=A0set correct to=A0Byteswap Control=0Aregister.=A0But= It's impossible, then ifdef workaround.=0A=0AHiroki Mori=0A=0A----- Origin= al Message -----=0A>From: Warner Losh <imp@bsdimp.com>=0A>To: Mori Hiroki <= yamori813@yahoo.co.jp> =0A>Cc: "freebsd-mips@freebsd.org" <freebsd-mips@fre= ebsd.org>=0A>Date: 2016/2/5, Fri 13:04=0A>Subject: Re: CFI Byte order probl= em=0A> =0A>=0A>=0A>=0A>=0A>=0A>On Thu, Feb 4, 2016 at 8:31 AM, Mori Hiroki = <yamori813@yahoo.co.jp> wrote:=0A>=0A>Hi.=A0=0A>>=0A>>I build Current for= =A0AR9132. But don't=A0recognize cfi flash memory.=0A>>I make debug write a= nd found byte endian issue. I seem AR9132=0A>>is byte swap in cfi flash mem= ory by default. Current cif code is=A0=0A>>byte swap on Big Endian machine.= This is conflict.=0A>>=0A>>I make workaound by option for this problem.=0A= >>=0A>>https://github.com/yamori813/freebsd/commit/2da6531d24e0d689763f2505= 5420078a63a08baa=0A>=0A>=0A>Why the #ifdef? Why not always swap on big endi= an platforms?=0A>=0A>=0A>Warner=0A>=0A>=0A>=0A>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?915990.4597.qm>