diff options
| author | Andi Kleen <[email protected]> | 2008-01-30 13:33:51 +0100 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2008-01-30 13:33:51 +0100 |
| commit | aaa0e89023656c078c67cbd0460fc2ccbf3323c6 (patch) | |
| tree | 57d9c67decf53c7cd6d522bb4797c45d2e2f7888 /tools/perf/scripts/python | |
| parent | c6ca18eb759c43ae20d953ef90c3de4557f9342a (diff) | |
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 <[email protected]>
Acked-by: Jan Beulich <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions