diff options
Diffstat (limited to 'arch/powerpc/mm/hash_utils_64.c')
-rw-r--r-- | arch/powerpc/mm/hash_utils_64.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index c78dc912411f..f09730bf3a33 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c | |||
@@ -51,6 +51,7 @@ | |||
51 | #include <asm/cputable.h> | 51 | #include <asm/cputable.h> |
52 | #include <asm/sections.h> | 52 | #include <asm/sections.h> |
53 | #include <asm/spu.h> | 53 | #include <asm/spu.h> |
54 | #include <asm/udbg.h> | ||
54 | 55 | ||
55 | #ifdef DEBUG | 56 | #ifdef DEBUG |
56 | #define DBG(fmt...) udbg_printf(fmt) | 57 | #define DBG(fmt...) udbg_printf(fmt) |
@@ -791,8 +792,7 @@ int hash_page(unsigned long ea, unsigned long access, unsigned long trap) | |||
791 | } | 792 | } |
792 | if (user_region) { | 793 | if (user_region) { |
793 | if (psize != get_paca()->context.user_psize) { | 794 | if (psize != get_paca()->context.user_psize) { |
794 | get_paca()->context.user_psize = | 795 | get_paca()->context = mm->context; |
795 | mm->context.user_psize; | ||
796 | slb_flush_and_rebolt(); | 796 | slb_flush_and_rebolt(); |
797 | } | 797 | } |
798 | } else if (get_paca()->vmalloc_sllp != | 798 | } else if (get_paca()->vmalloc_sllp != |
@@ -885,6 +885,9 @@ void hash_preload(struct mm_struct *mm, unsigned long ea, | |||
885 | local_irq_restore(flags); | 885 | local_irq_restore(flags); |
886 | } | 886 | } |
887 | 887 | ||
888 | /* WARNING: This is called from hash_low_64.S, if you change this prototype, | ||
889 | * do not forget to update the assembly call site ! | ||
890 | */ | ||
888 | void flush_hash_page(unsigned long va, real_pte_t pte, int psize, int ssize, | 891 | void flush_hash_page(unsigned long va, real_pte_t pte, int psize, int ssize, |
889 | int local) | 892 | int local) |
890 | { | 893 | { |