diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-17 17:58:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-17 17:58:56 -0500 |
commit | a52519f2ce180890069fa7b1a92fa51d4448a0ba (patch) | |
tree | cae6d87adcba8ee831f9a50f3cff467254861718 | |
parent | 1bda71282ded6a2e09a2db7c8884542fb46bfd4f (diff) | |
parent | af4d3643864ee5fcba0c97d77a424fa0b0346f8e (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
-rw-r--r-- | arch/powerpc/kernel/misc_32.S | 4 | ||||
-rw-r--r-- | arch/powerpc/lib/rheap.c | 1 |
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 | 495 | 1: 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) |