Commit:     a792e75d9b3dec3fc1dfef4a8c40674bbba44641
Parent:     7e22fa4a1d9a70176e1edc4529934406e1af6054
Author:     Benjamin Herrenschmidt <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 7 17:17:02 2007 +1100
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Thu Nov 8 14:15:34 2007 +1100

    [POWERPC] Fix si_addr value on low level hash failures
    If the low level MMU hash table insertion returns an error (which
    can happen in some rare circumstances when the hypervisor refuses
    the insertion of a PTE, typically if you try to access junk via
    /dev/mem), the generated signal had an incorrect si_addr value due
    to a bug in the assembly, which was loading it as a 32 bits quantity
    instead of a 64 bits quantity.
    Signed-off-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 arch/powerpc/kernel/head_64.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S
index 97c5857..c349868 100644
--- a/arch/powerpc/kernel/head_64.S
+++ b/arch/powerpc/kernel/head_64.S
@@ -904,7 +904,7 @@ handle_page_fault:
 12:    bl      .save_nvgprs
        addi    r3,r1,STACK_FRAME_OVERHEAD
-       lwz     r4,_DAR(r1)
+       ld      r4,_DAR(r1)
        bl      .low_hash_fault
        b       .ret_from_except
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to