Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2013 10:20:27 +0200
From:      Guillaume Bibaut <yom@iaelu.net>
To:        Adrian Chadd <adrian@freebsd.org>
Cc:        freebsd-arm@freebsd.org, freebsd-wireless@freebsd.org
Subject:   Re: arm/179532: wireless networking on ARM
Message-ID:  <0F0FA54B-4970-41A7-9173-4EF28A61DFE5@iaelu.net>
In-Reply-To: <CAJ-VmomctPwB=0MjV8DNO1UxxcJmzx%2BkyDy6p4=d%2BGPSAsu1yg@mail.gmail.com>
References:  <201306130940.r5D9eiFx089862@oldred.freebsd.org> <CAJ-VmomxoYJ%2B73ro9hg4Ee%2BqseCV-Gy2SmV1fsOBO1EC1Hu6LA@mail.gmail.com> <CAJ-VmomctPwB=0MjV8DNO1UxxcJmzx%2BkyDy6p4=d%2BGPSAsu1yg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_0E3BB8F7-3797-4DC6-9268-44BA762BAC02
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Here is the output :

set_channel: c=3D0xc289b214, p=3D0xc2892fbb, rc=3D0xc2892fbb


picture :=20

http://iaelu.net/~yom/efikamx/arm-eabi/photo6.JPG


--
Guillaume


Le 14 juin 2013 =E0 07:32, Adrian Chadd <adrian@freebsd.org> a =E9crit :

> So that line does this:
>=20
>        rc->freq =3D htole16(c->ic_freq);
>=20
> Please print out the value of p, c and rc before that is called.
>=20
> printf("%s: c=3D%p, p=3D%p, rc=3D%p\n", __func__, c, p, rc);
>=20
> I bet one of them is unaligned.
>=20
> And I bet that 'c' is aligned, but 'rc' and 'p' aren't aligned.
> I bet they're unaligned because ic->ic_rxchan and/or ic->ic_txchan is =
unaligned.
>=20
> Now, why _those_ are unaligned, I dunno. I bet the pointers passed
> into ieee80211_radiotap_attach() (th and rh) are unaligned, and that
> leads to this unalignment mess.
>=20
> The whole tx and rx tap structure allocation in if_runvar.h is a bit =
sick. Sigh.
>=20
>=20
>=20
> Adrian
>=20
>=20
> On 13 June 2013 16:49, Adrian Chadd <adrian@freebsd.org> wrote:
>> Ugh,
>>=20
>> Hi,
>>=20
>> An alignment fault? ugh. It works fine on MIPS; I wonder if it's
>> something odd to do with the specific driver in use.
>>=20
>> I'll look at the source and get back to everyone.
>>=20
>> Thanks!
>>=20
>>=20
>>=20
>> adrian
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"


--Apple-Mail=_0E3BB8F7-3797-4DC6-9268-44BA762BAC02
Content-Disposition: attachment;
	filename=smime.p7s
Content-Type: application/pkcs7-signature;
	name=smime.p7s
Content-Transfer-Encoding: base64

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMbDCCBjAw
ggUYoAMCAQICAwYWrDANBgkqhkiG9w0BAQUFADCBjDELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0
YXJ0Q29tIEx0ZC4xKzApBgNVBAsTIlNlY3VyZSBEaWdpdGFsIENlcnRpZmljYXRlIFNpZ25pbmcx
ODA2BgNVBAMTL1N0YXJ0Q29tIENsYXNzIDEgUHJpbWFyeSBJbnRlcm1lZGlhdGUgQ2xpZW50IENB
MB4XDTEzMDMwNTE1MTQzMVoXDTE0MDMwNjA4MzI0MlowUTEZMBcGA1UEDRMQakZOWWl6d2VKOTYz
QTZIMzEWMBQGA1UEAwwNeW9tQGlhZWx1Lm5ldDEcMBoGCSqGSIb3DQEJARYNeW9tQGlhZWx1Lm5l
dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMnWIG7zLiKK4w3apbsbi4Y/kLDK03C/
/GYp99TS2H3s9E8vg708TyYXXzbc9y0MvVyceLMTGXmV0gK3//QAlkW9ghXwM3NuQWk+yVLyPIt9
1gAgMkixnOJzyjECRp3PNPfti59YcFXwaPebVE+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hcnRDb20gQ2xhc3MgMSBQcmltYXJ5IEludGVy
bWVkaWF0ZSBDbGllbnQgQ0ECAwYWrDCBpwYLKoZIhvcNAQkQAgsxgZeggZQwgYwxCzAJBgNVBAYT
AklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSswKQYDVQQLEyJTZWN1cmUgRGlnaXRhbCBDZXJ0
aWZpY2F0ZSBTaWduaW5nMTgwNgYDVQQDEy9TdGFydENvbSBDbGFzcyAxIFByaW1hcnkgSW50ZXJt
ZWRpYXRlIENsaWVudCBDQQIDBhasMA0GCSqGSIb3DQEBAQUABIIBAKEOq1SqWTqLPDw7PDmI7Cwv
wGxiyLkcndh0iemDLEWW/u8HppbGer0MAdmZa05KYRbMRzV43qaseMGkX6zGCMtduMLFMx3bddAo
JLndq0nFC/d8y4oKkwxQZfb6RUyNf9rp7/WstUa0qf55SpfVDtLcFQT324mXwP208xzCwUjKPuQU
3bneXx7kNS4i15datFAO5bc8hD391roXRDjiqxc0rtvfhWmyjNa7lsKdlWBUzNNX08byk9GDWzDn
oJ5Fju1CZgZFV75OQ+mhBcR8reeRcGB2OfoStHjzv23BCd0CKuXo6P+Gf1aodLm6lwNhRZC2PPSx
XWzT86Jj5Zi+81oAAAAAAAA=

--Apple-Mail=_0E3BB8F7-3797-4DC6-9268-44BA762BAC02--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0F0FA54B-4970-41A7-9173-4EF28A61DFE5>