problem - 8bytes aligned malloc() for PowerPC

Mar 07, 2006 0 Replies

Hello, I'm completely new and stupid in embedded Linux for PowerPC. My embedded PowerPC has 32-byte cache line size. Therefore I would like to get always chunks of the memory which are aligned to 32 bytes boundary. But running simple test I see that's always aligned to 8 bytes boundary



- malloc(). Does anybody know how kmalloc works? How alignment in this case works? Is there some way how to enforce such aligment? I saw that QNX works the same way. Thanks.



Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required