aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-12-17 17:58:56 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2008-12-17 17:58:56 -0500
commita52519f2ce180890069fa7b1a92fa51d4448a0ba (patch)
treecae6d87adcba8ee831f9a50f3cff467254861718 /arch
parent1bda71282ded6a2e09a2db7c8884542fb46bfd4f (diff)
parentaf4d3643864ee5fcba0c97d77a424fa0b0346f8e (diff)
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc: powerpc: Fix corruption error in rh_alloc_fixed() powerpc/fsl-booke: Fix the miss interrupt restore
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/misc_32.S4
-rw-r--r--arch/powerpc/lib/rheap.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S
index d108715129e2..5c33bc14bd9f 100644
--- a/arch/powerpc/kernel/misc_32.S
+++ b/arch/powerpc/kernel/misc_32.S
@@ -486,13 +486,13 @@ _GLOBAL(_tlbil_va)
486 tlbsx 0,r3 486 tlbsx 0,r3
487 mfspr r4,SPRN_MAS1 /* check valid */ 487 mfspr r4,SPRN_MAS1 /* check valid */
488 andis. r3,r4,MAS1_VALID@h 488 andis. r3,r4,MAS1_VALID@h
489 beqlr 489 beq 1f
490 rlwinm r4,r4,0,1,31 490 rlwinm r4,r4,0,1,31
491 mtspr SPRN_MAS1,r4 491 mtspr SPRN_MAS1,r4
492 tlbwe 492 tlbwe
493 msync 493 msync
494 isync 494 isync
495 wrtee r10 4951: wrtee r10
496 blr 496 blr
497#endif /* CONFIG_FSL_BOOKE */ 497#endif /* CONFIG_FSL_BOOKE */
498 498
diff --git a/arch/powerpc/lib/rheap.c b/arch/powerpc/lib/rheap.c
index 29b2941cada0..45907c1dae66 100644
--- a/arch/powerpc/lib/rheap.c
+++ b/arch/powerpc/lib/rheap.c
@@ -556,6 +556,7 @@ unsigned long rh_alloc_fixed(rh_info_t * info, unsigned long start, int size, co
556 be = blk->start + blk->size; 556 be = blk->start + blk->size;
557 if (s >= bs && e <= be) 557 if (s >= bs && e <= be)
558 break; 558 break;
559 blk = NULL;
559 } 560 }
560 561
561 if (blk == NULL) 562 if (blk == NULL)