diff options
author | Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> | 2008-05-02 13:08:20 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-06-05 19:13:14 +0200 |
commit | 057229f9efc7ebebd3ce0496195ed46df631f383 (patch) | |
tree | 97f14e46db15c0c420db4f188d4bcf15b8843708 /include | |
parent | [MIPS] R4700: Fix build_tlb_probe_entry (diff) | |
download | linux-057229f9efc7ebebd3ce0496195ed46df631f383.tar.xz linux-057229f9efc7ebebd3ce0496195ed46df631f383.zip |
[MIPS] Add missing braces to pte_mkyoung
Only the version pte_mkyoung for 36-bit pagetables on 32-bit hw was
affected and with this bug being around since November 29, 2004 there
is evidence to suport the assumption it was benign ;-)
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/pgtable.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index 2f597eea4448..6a0edf72ffbc 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h @@ -239,9 +239,10 @@ static inline pte_t pte_mkdirty(pte_t pte) static inline pte_t pte_mkyoung(pte_t pte) { pte.pte_low |= _PAGE_ACCESSED; - if (pte.pte_low & _PAGE_READ) + if (pte.pte_low & _PAGE_READ) { pte.pte_low |= _PAGE_SILENT_READ; pte.pte_high |= _PAGE_SILENT_READ; + } return pte; } #else |