Commit 09f3eca2 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'for-2.6.24' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc

* 'for-2.6.24' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc:
  [POWERPC] Fix swapper_pg_dir size when CONFIG_PTE_64BIT=y on FSL_BOOKE
parents e1b7361f bee86f14
...@@ -326,8 +326,7 @@ int main(void) ...@@ -326,8 +326,7 @@ int main(void)
DEFINE(VMALLOC_START_VSID, KERNEL_VSID(VMALLOC_START)); DEFINE(VMALLOC_START_VSID, KERNEL_VSID(VMALLOC_START));
#endif #endif
#ifdef CONFIG_PPC64
DEFINE(PGD_TABLE_SIZE, PGD_TABLE_SIZE); DEFINE(PGD_TABLE_SIZE, PGD_TABLE_SIZE);
#endif
return 0; return 0;
} }
...@@ -1311,7 +1311,7 @@ empty_zero_page: ...@@ -1311,7 +1311,7 @@ empty_zero_page:
.globl swapper_pg_dir .globl swapper_pg_dir
swapper_pg_dir: swapper_pg_dir:
.space 4096 .space PGD_TABLE_SIZE
.globl intercept_table .globl intercept_table
intercept_table: intercept_table:
......
...@@ -994,7 +994,7 @@ empty_zero_page: ...@@ -994,7 +994,7 @@ empty_zero_page:
.space 4096 .space 4096
.globl swapper_pg_dir .globl swapper_pg_dir
swapper_pg_dir: swapper_pg_dir:
.space 4096 .space PGD_TABLE_SIZE
/* Stack for handling critical exceptions from kernel mode */ /* Stack for handling critical exceptions from kernel mode */
......
...@@ -722,7 +722,7 @@ empty_zero_page: ...@@ -722,7 +722,7 @@ empty_zero_page:
*/ */
.globl swapper_pg_dir .globl swapper_pg_dir
swapper_pg_dir: swapper_pg_dir:
.space 8192 .space PGD_TABLE_SIZE
/* Reserved 4k for the critical exception stack & 4k for the machine /* Reserved 4k for the critical exception stack & 4k for the machine
* check stack per CPU for kernel mode exceptions */ * check stack per CPU for kernel mode exceptions */
......
...@@ -1035,7 +1035,7 @@ empty_zero_page: ...@@ -1035,7 +1035,7 @@ empty_zero_page:
.space 4096 .space 4096
.globl swapper_pg_dir .globl swapper_pg_dir
swapper_pg_dir: swapper_pg_dir:
.space 4096 .space PGD_TABLE_SIZE
/* Reserved 4k for the critical exception stack & 4k for the machine /* Reserved 4k for the critical exception stack & 4k for the machine
* check stack per CPU for kernel mode exceptions */ * check stack per CPU for kernel mode exceptions */
......
...@@ -86,6 +86,11 @@ extern int icache_44x_need_flush; ...@@ -86,6 +86,11 @@ extern int icache_44x_need_flush;
* entries per page directory level: our page-table tree is two-level, so * entries per page directory level: our page-table tree is two-level, so
* we don't really have any PMD directory. * we don't really have any PMD directory.
*/ */
#ifndef __ASSEMBLY__
#define PTE_TABLE_SIZE (sizeof(pte_t) << PTE_SHIFT)
#define PGD_TABLE_SIZE (sizeof(pgd_t) << (32 - PGDIR_SHIFT))
#endif /* __ASSEMBLY__ */
#define PTRS_PER_PTE (1 << PTE_SHIFT) #define PTRS_PER_PTE (1 << PTE_SHIFT)
#define PTRS_PER_PMD 1 #define PTRS_PER_PMD 1
#define PTRS_PER_PGD (1 << (32 - PGDIR_SHIFT)) #define PTRS_PER_PGD (1 << (32 - PGDIR_SHIFT))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment