Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bee86f14 authored by Kumar Gala's avatar Kumar Gala
Browse files

[POWERPC] Fix swapper_pg_dir size when CONFIG_PTE_64BIT=y on FSL_BOOKE



The size of swapper_pg_dir is 8k instead of 4k when using 64-bit PTEs
(CONFIG_PTE_64BIT).

This was reported by Cedric Hombourger <chombourger@gmail.com>

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 7e1fb765
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -326,8 +326,7 @@ int main(void)
	DEFINE(VMALLOC_START_VSID, KERNEL_VSID(VMALLOC_START));
#endif

#ifdef CONFIG_PPC64
	DEFINE(PGD_TABLE_SIZE, PGD_TABLE_SIZE);
#endif

	return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -1311,7 +1311,7 @@ empty_zero_page:

	.globl	swapper_pg_dir
swapper_pg_dir:
	.space	4096
	.space	PGD_TABLE_SIZE

	.globl intercept_table
intercept_table:
+1 −1
Original line number Diff line number Diff line
@@ -994,7 +994,7 @@ empty_zero_page:
	.space	4096
	.globl	swapper_pg_dir
swapper_pg_dir:
	.space	4096
	.space	PGD_TABLE_SIZE


/* Stack for handling critical exceptions from kernel mode */
+1 −1
Original line number Diff line number Diff line
@@ -722,7 +722,7 @@ empty_zero_page:
 */
	.globl	swapper_pg_dir
swapper_pg_dir:
	.space	8192
	.space	PGD_TABLE_SIZE

/* Reserved 4k for the critical exception stack & 4k for the machine
 * check stack per CPU for kernel mode exceptions */
+1 −1
Original line number Diff line number Diff line
@@ -1035,7 +1035,7 @@ empty_zero_page:
	.space	4096
	.globl	swapper_pg_dir
swapper_pg_dir:
	.space	4096
	.space	PGD_TABLE_SIZE

/* Reserved 4k for the critical exception stack & 4k for the machine
 * check stack per CPU for kernel mode exceptions */
Loading