Self modifying code in ARM 11 architectures
From: Mulyadi Santosa <hidden>
Date: 2011-05-25 03:55:19
From: Mulyadi Santosa <hidden>
Date: 2011-05-25 03:55:19
Hi... On Tue, May 24, 2011 at 17:15, Ashok Babu [off-list ref] wrote:
So here my questions/doubts : 1) Is'nt it the kernel itself is self modifying code with lots of function pointers ?
AFAIK, yes there are many.. however, some of them, even in the form of pointer assignment, are rarely changing. But if it is changing, for sure cache needs to be flushed/invalidated. This is especially true in SMP environment ( and don't forget memory barrier....) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com