AnsweredAssumed Answered

Kernel locking cache lines for user mode

Question asked by Alexy Torres on Feb 7, 2019
Latest reply on Feb 14, 2019 by Alexy Torres

Hello,

 

I am currently writing a kernel module that will lock cache lines for applications at context switch. 

My kernel is mapped 1:1 so I lock physical addresses corresponding to data used by the application directly.

 

However when my application executes, all memory accesses to supposedly locked line seems to produce a cache misses.

Am I doing something wrong?

 

 

Caches are enabled and lines are correctly locked in caches (I could check that with a debug probe).

 

I am using a NXP MPC5777C e200z7 core.

 

Thanks in advance!

Outcomes