Hi! > On architecture that are not able to handle in hardware > misaligned access, it could cause the application to be killed by a SIGBUS > > So, the following simple assignment > > void *test; > *(int *)test = stat_i; > > causes on SH4 the following error: > > Unaligned userspace access in "shmctl01" pid=8547 pc=0x0040221a ins=0x400b > Sending SIGBUS to "shmctl01" due to unaligned access (PC 40221a PR 40221e) > > Using a 'memcpy' is safe.
Commited, thanks. -- Cyril Hrubis [email protected] ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
