Hello nini09,
Really the code is already copied in an area of ram.
I can execute this code from userspace, but not from the driver.
In userspace, I do a mmap with the PROT_EXEC flag and I can call the rom code without problems.
But under kernelspace, inside the driver, I don’t know how to change the memory protetcion.
Surely is with ‘remap_pfn_range’ or similar, but I don’t know how to obtain or build the VMA strcut.
Thanks,
Andrew
Last edited by andparker; 06-07-2011 at 03:35 AM.
|