In the unaligned access exception vector, actually pass the return PC
in the exception frame.  This is required in order for unaligned access
fixup handlers in the operating system to work.

Signed-off-by: Jason Thorpe <thor...@me.com>
---
 pal.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pal.S b/pal.S
index 64941a8..015a829 100644
--- a/pal.S
+++ b/pal.S
@@ -278,7 +278,7 @@ Pal_Unalign:
        blbs    p6, MchkBugCheck
        addq    p6, 4, p6               // increment past the faulting insn
 
-       STACK_FRAME p0, p1, p2, 1
+       STACK_FRAME p0, p6, p2, 1
 
        mfpr    p0, ptEntUna
        mfpr    $gp, ptKgp
-- 
2.30.2


Reply via email to