开发者

How do the PROT flags within mmap(), translate to register values?

开发者 https://www.devze.com 2023-01-08 12:48 出处:网络
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

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 fai开发者_StackOverflow社区l to see where the "flags/PROT" values translate to a register value on the CPU.

Thanks


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号