[En-Nut-Discussion] NutHeapAlloc Error?
Nathan Moore
nategoose at gmail.com
Thu Oct 16 20:29:21 CEST 2008
>
> 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.
Implementing that as an option at least is a good idea, but the heap code
should probably handle it itself rather than relying on the ISR.
Nahtan
More information about the En-Nut-Discussion
mailing list