Skip to content

Commit

Permalink
sparc: make asm PIC friendly
Browse files Browse the repository at this point in the history
JIRA: RTOS-664
  • Loading branch information
badochov committed Sep 12, 2024
1 parent 9c5ba2f commit ab58b63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions arch/sparcv8leon3/jmp.S
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ _longjmp:
.type sigsetjmp, #function
sigsetjmp:
cmp %o1, 0
bne setjmp
bne 1f
nop
jmp _setjmp
nop
ba _setjmp
1:
jmp setjmp
nop
.size sigsetjmp, .-sigsetjmp
2 changes: 1 addition & 1 deletion arch/sparcv8leon3/syscalls.S
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sym: \
.globl vfork
.type vfork, #function
vfork:
ba vforksvc
jmp vforksvc
nop
.size vfork, .-vfork

Expand Down

0 comments on commit ab58b63

Please sign in to comment.