[PATCH] ppc32: fix CONFIG_TASK_SIZE handling on 44x

This patch fixed CONFIG_TASK_SIZE handling on 44x. Currently head_44x.S
hardcodes 0x80000000, which breaks if user chooses to change TASK_SIZE
(e.g. for 3G user-space). Tested on Ocotea in 3G/1G configuration.

Signed-off-by: Eugene Surovegin <ebs@ebshome.net>
Signed-off-by: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Matt Porter and committed by Linus Torvalds b2665f92 7f8cd80f

+9 -6
+9 -6
arch/ppc/kernel/head_44x.S
··· 330 330 /* If we are faulting a kernel address, we have to use the 331 331 * kernel page tables. 332 332 */ 333 - andis. r11, r10, 0x8000 334 - beq 3f 333 + lis r11, TASK_SIZE@h 334 + cmplw r10, r11 335 + blt+ 3f 335 336 lis r11, swapper_pg_dir@h 336 337 ori r11, r11, swapper_pg_dir@l 337 338 ··· 465 464 /* If we are faulting a kernel address, we have to use the 466 465 * kernel page tables. 467 466 */ 468 - andis. r11, r10, 0x8000 469 - beq 3f 467 + lis r11, TASK_SIZE@h 468 + cmplw r10, r11 469 + blt+ 3f 470 470 lis r11, swapper_pg_dir@h 471 471 ori r11, r11, swapper_pg_dir@l 472 472 ··· 535 533 /* If we are faulting a kernel address, we have to use the 536 534 * kernel page tables. 537 535 */ 538 - andis. r11, r10, 0x8000 539 - beq 3f 536 + lis r11, TASK_SIZE@h 537 + cmplw r10, r11 538 + blt+ 3f 540 539 lis r11, swapper_pg_dir@h 541 540 ori r11, r11, swapper_pg_dir@l 542 541