views:

18

answers:

1

I am interested in tracing how the mmap system call translates to register values on an ARM cpu. More interested in the path taken and where and when do these "PROT" attributes actually translate to a page attribute within the kernel. I did trace the system call till the "mmap_region" call under mm/mmap.c. From here, I fail to see where the "flags/PROT" values translate to a register value on the CPU.

Thanks

+2  A: 

MMU protection flags are set on arch/arm/mm/proc-xxx.S, on a function called xxx_set_pte_ext. Obviously, this is for processors with MMU.

ninjalj
Thanks... I am have some more questions. I will read up on what you have pointed me to in more detail.Vijay
TheLoneJoker