summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-05-10 21:13:45 +0200
committerHelge Deller <deller@gmx.de>2023-05-10 21:13:45 +0200
commit3258b4444d84876d27bbf3fcf5c849fd58727db4 (patch)
tree6a2e79c39822993f38b31942952a0bc7ef5a9337
parent8f54e58cd151b4e80db27d1a068a6f7fbfa5b3b3 (diff)
downloadpalo-3258b4444d84876d27bbf3fcf5c849fd58727db4.tar.gz
ipl: Fix argument pointer in real64_call_asm
Fix the argument pointer (ap) when calling a 64-bit PDC/STI function. This fix is similiar to commit 6e3220ba3323 ("parisc: Fix argument pointer in real64_call_asm()") in the Linux kernel. Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--ipl/crt0.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipl/crt0.S b/ipl/crt0.S
index a48b3f7..08d7b32 100644
--- a/ipl/crt0.S
+++ b/ipl/crt0.S
@@ -223,7 +223,7 @@ real64_call_asm:
copy %arg2, %r31 /* save fn */
depd %arg3, 31, 32, %r31 /* merge in hi part */
- ldo 64(%arg1), %r29 /* set up the new ap */
+ ldo -2*REG_SZ(%sp), %r29 /* set up the new ap */
/* load up the arg registers from the saved arg area */
/* 64-bit calling convention passes first 8 args in registers */