[En-Nut-Discussion] NutHeapAlloc Error?
Ole Reinhardt
ole.reinhardt at embedded-it.de
Thu Oct 16 17:52:31 CEST 2008
Hi folks,
> > You are correct. This only affects any 32 bit word boundary processors.
> > So the "else" fix could go inside of a:
> >
> > #if defined(ARCH_32BIT)
> >
>
> Are their any 16 bit archs or archs that just don't care?
What's about an alignment trap handler like it is implemented in linux?
If you make an unaligned memory access an exeption will be thrown and
the exeption handler reads the values from an aligned address and
returns the correct values.
Indeed this is not the fastest and best solution, but will avoid similar
problems too.
Regards,
Ole Reinhardt
--
_____________________________________________________________
| |
| Embedded-IT Hard- und Softwarelösungen |
| |
| Ole Reinhardt Tel. / Fax: +49 (0)271 7420433 |
| Luisenstraße 29 Mobil: +49 (0)177 7420433 |
| 57076 Siegen eMail: ole.reinhardt at embedded-it.de |
| Germany Web: http://www.embedded-it.de |
| UstID / VAT: DE198944716 |
|_____________________________________________________________|
More information about the En-Nut-Discussion
mailing list