Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64499
b: refs/heads/master
c: 9975e77
h: refs/heads/master
i:
  64497: cd3c79e
  64495: 6ca6901
v: v3
  • Loading branch information
Ralf Baechle committed Aug 27, 2007
1 parent 887f5ea commit 9190ce0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bdd3ede0e11b5bc2d8424f73fb0219b8236d98bb
refs/heads/master: 9975e77df5428a1afff57fd8f76a1bc0bfc247fc
9 changes: 8 additions & 1 deletion trunk/arch/mips/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <linux/proc_fs.h>
#include <linux/pfn.h>

#include <asm/asm-offsets.h>
#include <asm/bootinfo.h>
#include <asm/cachectl.h>
#include <asm/cpu.h>
Expand Down Expand Up @@ -498,7 +499,13 @@ unsigned long pgd_current[NR_CPUS];
* different layout ...
*/
#define __page_aligned(order) __attribute__((__aligned__(PAGE_SIZE<<order)))
pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned(PGD_ORDER);

/*
* gcc 3.3 and older have trouble determining that PTRS_PER_PGD and PGD_ORDER
* are constants. So we use the variants from asm-offset.h until that gcc
* will officially be retired.
*/
pgd_t swapper_pg_dir[_PTRS_PER_PGD] __page_aligned(_PGD_ORDER);
#ifdef CONFIG_64BIT
#ifdef MODULE_START
pgd_t module_pg_dir[PTRS_PER_PGD] __page_aligned(PGD_ORDER);
Expand Down
6 changes: 5 additions & 1 deletion trunk/include/asm-mips/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *pt
#define PMD_T_LOG2 (__builtin_ffs(sizeof(pmd_t)) - 1)
#define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1)

extern pgd_t swapper_pg_dir[PTRS_PER_PGD];
/*
* We used to declare this array with size but gcc 3.3 and older are not able
* to find that this expression is a constant, so the size is dropped.
*/
extern pgd_t swapper_pg_dir[];

/*
* The following only work if pte_present() is true.
Expand Down

0 comments on commit 9190ce0

Please sign in to comment.