aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2013-03-12 00:31:40 +0000
committerAlexander Graf <agraf@suse.de>2013-03-22 15:28:52 +0100
commite01b444523e2b0c663b42b3e8f44ef48a6153051 (patch)
tree3b80bd7a3b7bee6819442c8d16abf2dd4525d40f /rules.mak
parente1a53ba2e0f6dcf4a8b25586cc9d8ec1e408305c (diff)
mmu-hash*: Clean up permission checking
Currently checking of PTE permission bits is split messily amongst ppc_hash{32,64}_pp_check(), ppc_hash{32,64}_check_prot() and their callers. This patch cleans this up to have the new function ppc_hash{32,64}_pte_prot() compute the page permissions from the SLBE (for 64-bit) or segment register (32-bit) and the pte. A greatly simplified version of the actual permissions check is then open coded in the callers. The 32-bit version of ppc_hash32_pte_prot() is implemented in terms of ppc_hash32_pp_prot(), a renamed and slightly cleaned up version of the old ppc_hash32_pp_check(), which is also used for checking BAT permissions on the 601. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'rules.mak')
0 files changed, 0 insertions, 0 deletions