diff options
Diffstat (limited to 'arch/csky/include/asm/mmu_context.h')
| -rw-r--r-- | arch/csky/include/asm/mmu_context.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/csky/include/asm/mmu_context.h b/arch/csky/include/asm/mmu_context.h index c410aa4fff1a..b2905c0485a7 100644 --- a/arch/csky/include/asm/mmu_context.h +++ b/arch/csky/include/asm/mmu_context.h | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | 16 | ||
| 17 | static inline void tlbmiss_handler_setup_pgd(unsigned long pgd, bool kernel) | 17 | static inline void tlbmiss_handler_setup_pgd(unsigned long pgd, bool kernel) |
| 18 | { | 18 | { |
| 19 | pgd &= ~(1<<31); | 19 | pgd -= PAGE_OFFSET; |
| 20 | pgd += PHYS_OFFSET; | 20 | pgd += PHYS_OFFSET; |
| 21 | pgd |= 1; | 21 | pgd |= 1; |
| 22 | setup_pgd(pgd, kernel); | 22 | setup_pgd(pgd, kernel); |
| @@ -29,7 +29,7 @@ static inline void tlbmiss_handler_setup_pgd(unsigned long pgd, bool kernel) | |||
| 29 | 29 | ||
| 30 | static inline unsigned long tlb_get_pgd(void) | 30 | static inline unsigned long tlb_get_pgd(void) |
| 31 | { | 31 | { |
| 32 | return ((get_pgd()|(1<<31)) - PHYS_OFFSET) & ~1; | 32 | return ((get_pgd() - PHYS_OFFSET) & ~1) + PAGE_OFFSET; |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) | 35 | #define cpu_context(cpu, mm) ((mm)->context.asid[cpu]) |
