Skip to content

Commit

Permalink
Merge pull request #2242 from DARMA-tasking/2241-update-version-file-…
Browse files Browse the repository at this point in the history
…and-add-asm-change

2241 update version file and add asm change
  • Loading branch information
lifflander committed Jan 23, 2024
2 parents 8e2da23 + b471068 commit 26c8c78
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.0
1.4.0
6 changes: 4 additions & 2 deletions lib/context/src/context/asm/jump_ppc64_sysv_elf_gas.S
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jump_fcontext:
# endif
#endif
# reserve space on stack
subi %r1, %r1, 184
subi %r1, %r1, 192

#if _CALL_ELF != 2
std %r2, 0(%r1) # save TOC
Expand All @@ -123,6 +123,7 @@ jump_fcontext:
#if _CALL_ELF != 2
std %r3, 152(%r1) # save hidden
#endif
stfd %f31, 184(%r1) # save F31

# save CR
mfcr %r0
Expand Down Expand Up @@ -166,6 +167,7 @@ jump_fcontext:
#if _CALL_ELF != 2
ld %r3, 152(%r1) # restore hidden
#endif
lfd %f31, 184(%r1) # restore F31

# restore CR
ld %r0, 160(%r1)
Expand All @@ -180,7 +182,7 @@ jump_fcontext:
mtctr %r12

# adjust stack
addi %r1, %r1, 184
addi %r1, %r1, 192

#if _CALL_ELF == 2
# copy transfer_t into transfer_fn arg registers
Expand Down
4 changes: 2 additions & 2 deletions lib/context/src/context/asm/make_ppc64_sysv_elf_gas.S
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ make_fcontext:

# reserve space for context-data on context-stack
# including 64 byte of linkage + parameter area (R1 % 16 == 0)
subi %r3, %r3, 248
subi %r3, %r3, 256

# third arg of make_fcontext() == address of context-function
# entry point (ELFv2) or descriptor (ELFv1)
Expand All @@ -123,7 +123,7 @@ make_fcontext:

# set back-chain to zero
li %r0, 0
std %r0, 184(%r3)
std %r0, 192(%r3)

#if _CALL_ELF != 2
# zero in r3 indicates first jump to context-function
Expand Down
6 changes: 4 additions & 2 deletions lib/context/src/context/asm/ontop_ppc64_sysv_elf_gas.S
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ontop_fcontext:
# endif
#endif
# reserve space on stack
subi %r1, %r1, 184
subi %r1, %r1, 192

#if _CALL_ELF != 2
std %r2, 0(%r1) # save TOC
Expand All @@ -123,6 +123,7 @@ ontop_fcontext:
#if _CALL_ELF != 2
std %r3, 152(%r1) # save hidden
#endif
stfd %f31, 184(%r1) # save F31

# save CR
mfcr %r0
Expand Down Expand Up @@ -165,6 +166,7 @@ ontop_fcontext:
#if _CALL_ELF != 2
ld %r3, 152(%r1) # restore hidden
#endif
lfd %f31, 184(%r1) # restore F31

# restore CR
ld %r0, 160(%r1)
Expand Down Expand Up @@ -203,7 +205,7 @@ return_to_ctx:
mtlr %r0

# adjust stack
addi %r1, %r1, 184
addi %r1, %r1, 192

# jump to context
bctr
Expand Down

0 comments on commit 26c8c78

Please sign in to comment.