cache locking linux

manInBlack

New Member
Credits
15
Hi, I'm using nxp T1040D4RDB board with Linux as OS and powerPC CPU. I have to use the dcbtls (data cache block touch and lock set) instruction for executing cache locking. Considering that I can't use that instruction in user space, I thought of implementing a Linux Kernel Module. In practice, I'm using a character device that executes the lock when in user space I execute the write function. But my problem is how to do the mapping between addresses in user space and addresses in kernel space. The instrction is:

dcbtls cache_targer, rA, rB where rA and rB rapresents the address of the cache line to block (virtual address)
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Staff online

Members online


Top