From: Dave Kleikamp Date: Mon, 7 Jul 2008 14:28:51 +0000 (+1000) Subject: mm: Allow architectures to define additional protection bits X-Git-Tag: v2.6.27-rc1~1058^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b845f313d78e4e259ec449909e3bbadf77b53a6d;p=pandora-kernel.git mm: Allow architectures to define additional protection bits This patch allows architectures to define functions to deal with additional protections bits for mmap() and mprotect(). arch_calc_vm_prot_bits() maps additonal protection bits to vm_flags arch_vm_get_page_prot() maps additional vm_flags to the vma's vm_page_prot arch_validate_prot() checks for valid values of the protection bits Note: vm_get_page_prot() is now pretty ugly, but the generated code should be identical for architectures that don't define additional protection bits. Signed-off-by: Dave Kleikamp Acked-by: Andrew Morton Acked-by: Hugh Dickins Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed