aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mm/proc-xscale.S
diff options
context:
space:
mode:
authorSteve Capper <steve.capper@linaro.org>2014-03-28 14:22:33 +0000
committerAnders Roxell <anders.roxell@linaro.org>2014-05-19 15:06:28 +0200
commit3028bfaafebd65f67c027e094fa24fc9db727c40 (patch)
tree76eed7eddb67261ac44008803e83bdf971859406 /arch/arm/mm/proc-xscale.S
parentc7cdb7b079738b0b29b244ce33cc3369f7129d4e (diff)
arm: mm: Introduce pte_isset and pte_isclear
Long descriptors on ARM are 64 bits, and some pte functions such as pte_dirty return a bitwise-and of a flag with the pte value. If the flag to be tested resides in the upper 32 bits of the pte, then we run into the danger of the result being dropped if downcast. For example: gather_stats(page, md, pte_dirty(*pte), 1); where pte_dirty(*pte) is downcast to an int. This patch introduces a new macro pte_isset which performs the bitwise and, then performs a double logical invert (where needed) to ensure predictable downcasting. Signed-off-by: Steve Capper <steve.capper@linaro.org>
Diffstat (limited to 'arch/arm/mm/proc-xscale.S')
0 files changed, 0 insertions, 0 deletions