Skip to content

Commit

Permalink
[MIPS] Fix computation of PGDIR_SHIFT for 16K pagesize on 32-bit kern…
Browse files Browse the repository at this point in the history
…els.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Aug 27, 2007
1 parent 50c4663 commit 4c8081e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions include/asm-mips/pgtable-32.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ extern int add_temporary_entry(unsigned long entrylo0, unsigned long entrylo1,
*/

/* PGDIR_SHIFT determines what a third-level page table entry can map */
#ifdef CONFIG_64BIT_PHYS_ADDR
#define PGDIR_SHIFT 21
#else
#define PGDIR_SHIFT 22
#endif
#define PGDIR_SHIFT (2 * PAGE_SHIFT + PTE_ORDER - PTE_T_LOG2)
#define PGDIR_SIZE (1UL << PGDIR_SHIFT)
#define PGDIR_MASK (~(PGDIR_SIZE-1))

Expand Down

0 comments on commit 4c8081e

Please sign in to comment.