Date: Sun, 19 Apr 2015 23:27:30 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Nathan Ward <freebsd@daork.net> Cc: "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org> Subject: Re: Address error trap in ng_netflow on MIPS Message-ID: <CAJ-VmomgXAqUiLXhJohNdYRgOscP3mfcn56ewsQceLpvfLDjJw@mail.gmail.com> In-Reply-To: <etPan.55349b99.19495cff.11e@brooklyn.local> References: <etPan.55349b99.19495cff.11e@brooklyn.local>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi! The problem is that the frame is unaligned and MIPS doesn't do unaligned accesses for you. So yes, you either replace them with a memcpy of the header into aligned memory first, or you modify everything to use macros/inlines that treat the data as a char array (1 byte aligned) and do char accesses to get to it. -adrian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomgXAqUiLXhJohNdYRgOscP3mfcn56ewsQceLpvfLDjJw>