linux/arch/sh
Matt Fleming 3f5ab76816 sh: Correct the PTRS_PER_PMD and PMD_SHIFT values
The previous expressions were wrong which made free_pmd_range() explode
when using anything other than 4KB pages (which is why 8KB and 64KB
pages were disabled with the 3-level page table layout).

The problem was that pmd_offset() was returning an index of non-zero
when it should have been returning 0. This non-zero offset was used to
calculate the address of the pmd table to free in free_pmd_range(),
which ended up trying to free an object that was not aligned on a page
boundary.

Now 3-level page tables should work with 4KB, 8KB and 64KB pages.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
2010-01-02 00:51:45 +00:00
..
boards sh: mach-ecovec24: setup.c detailed correction 2009-12-24 14:59:51 +09:00
boot sh: include empty zero page in romImage 2009-12-04 16:26:20 +09:00
cchips sh: mach-hp6xx: Fix up the hp6xx build for hd64461 changes. 2009-05-20 11:27:13 +09:00
configs sh: sh4 scif pdata (sh7750/sh7760/sh4-202) 2009-12-15 12:06:33 +09:00
drivers sh: move machtypes.h to include/generated 2009-12-12 13:08:14 +01:00
include sh: Correct the PTRS_PER_PMD and PMD_SHIFT values 2010-01-02 00:51:45 +00:00
kernel sh: Only use bl bit toggling for sleeping idle. 2009-12-21 11:57:33 +09:00
lib sh: Optimised memset for SH4 2009-11-24 16:28:43 +09:00
lib64 sh64: Kill off special clear_page() implementation. 2009-08-04 17:17:00 +09:00
math-emu sh: Minor optimisations to FPU handling 2009-11-24 17:45:38 +09:00
mm sh: Correct the PTRS_PER_PMD and PMD_SHIFT values 2010-01-02 00:51:45 +00:00
oprofile sh: oprofile: Fix up count size mismatch for common impl. 2009-11-05 17:13:15 +09:00
tools sh: move machtypes.h to include/generated 2009-12-12 13:08:14 +01:00
Kconfig Merge branch 'sh/stable-updates' 2009-10-27 17:10:24 +09:00
Kconfig.cpu sh: Tidy up SH-4A boot_cpu_data.flags probing. 2009-06-01 19:50:08 +09:00
Kconfig.debug sh: Remove old early serial console code V2 2009-12-15 12:07:35 +09:00
Makefile sh: move machtypes.h to include/generated 2009-12-12 13:08:14 +01:00