mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
parisc: factor out sid to protid conversion
Create a new __space_to_prot inline to convert the space id (mmu context) to a protection id. Sadly it doesn't look like the #ifdef can be eliminated since relying on the compiler to not truncate a bit on return (ctx >> SPACEID_SHIFT) << 1; seems a little dodgy. Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
This commit is contained in:
parent
0ca5506da6
commit
a60715f589
1 changed files with 9 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue