Skip to content

Commit

Permalink
1.21_linux/runtime: bug fix: add NOFRAME explicitly
Browse files Browse the repository at this point in the history
This address on remained functions.
  • Loading branch information
hajimehoshi committed Sep 19, 2023
1 parent 47cf689 commit a3d7f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 1.21_linux/runtime/sys_linux_arm64.s.patch
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ TEXT runtime·usleep(SB),NOSPLIT,$24-4
SVC
RET
//--to
TEXT runtime·usleep_trampoline(SB),NOSPLIT,$0
TEXT runtime·usleep_trampoline(SB),NOSPLIT|NOFRAME,$0
MOVW 0(R0), R0
BL hitsumabushi_usleep(SB)
RET
Expand All @@ -177,7 +177,7 @@ TEXT runtime·gettid(SB),NOSPLIT,$0-4
MOVW R0, ret+0(FP)
RET
//--to
TEXT runtime·gettid_trampoline(SB),NOSPLIT,$0
TEXT runtime·gettid_trampoline(SB),NOSPLIT|NOFRAME,$0
MOVD R0, R19 // R19 is callee-save
BL hitsumabushi_gettid(SB)
MOVW R0, 0(R19) // return value
Expand Down

0 comments on commit a3d7f85

Please sign in to comment.