From: Andi Kleen Date: Wed, 30 Jan 2008 12:33:51 +0000 (+0100) Subject: x86: don't drop NX bit in pte modifier functions on 32-bit X-Git-Tag: v2.6.25-rc1~1143^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaa0e89023656c078c67cbd0460fc2ccbf3323c6;p=pandora-kernel.git x86: don't drop NX bit in pte modifier functions on 32-bit The pte_* modifier functions that cleared bits dropped the NX bit on 32bit PAE because they only worked in int, but NX is in bit 63. Fix that by adding appropiate casts so that the arithmetic happens as long long on PAE kernels. I decided to just use 64bit arithmetic instead of open coding like pte_modify() because gcc should generate good enough code for that now. Signed-off-by: Andi Kleen Acked-by: Jan Beulich Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed