From: Kyle McMartin Date: Mon, 22 Dec 2008 17:29:02 +0000 (-0500) Subject: parisc: factor out sid to protid conversion X-Git-Tag: v2.6.29-rc1~38^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a60715f58907d4e1db7be6c31fa050c993e119b5;p=pandora-kernel.git 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 --- Reading git-diff-tree failed