diff options
| author | Austin Clements <austin@google.com> | 2018-01-25 13:57:37 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2018-02-12 21:41:23 +0000 |
| commit | 8a064c600802eaab9da0cbc83adccafb5d1b8678 (patch) | |
| tree | 81d51e4ac2a2f9dfe5c5b302f33b885cb7c97396 /src/runtime/sys_netbsd_arm.s | |
| parent | 495174302f12eafa9f8793751a5208395b969fd6 (diff) | |
| download | go-8a064c600802eaab9da0cbc83adccafb5d1b8678.tar.xz | |
runtime: fix silly frame sizes on arm and arm64
"-8" is not a sensible frame size on arm and we're about to start
rejecting it. Replace it with -4.
Likewise, "-4" is not a sensible frame size on arm64 and we're about
to start rejecting it. Replace it with -8.
Finally, clean up some places we're weirdly inconsistent about using 0
versus -8.
Change-Id: If85e229993d5f7f1f0cfa9852b4e294d053bd784
Reviewed-on: https://go-review.googlesource.com/92038
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/sys_netbsd_arm.s')
| -rw-r--r-- | src/runtime/sys_netbsd_arm.s | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/sys_netbsd_arm.s b/src/runtime/sys_netbsd_arm.s index 7d2e290dd9..3acde12ed0 100644 --- a/src/runtime/sys_netbsd_arm.s +++ b/src/runtime/sys_netbsd_arm.s @@ -33,7 +33,7 @@ storeloop: MOVW R8, (R8) JMP 0(PC) -TEXT runtime·open(SB),NOSPLIT,$-8 +TEXT runtime·open(SB),NOSPLIT,$-4 MOVW name+0(FP), R0 MOVW mode+4(FP), R1 MOVW perm+8(FP), R2 @@ -42,14 +42,14 @@ TEXT runtime·open(SB),NOSPLIT,$-8 MOVW R0, ret+12(FP) RET -TEXT runtime·closefd(SB),NOSPLIT,$-8 +TEXT runtime·closefd(SB),NOSPLIT,$-4 MOVW fd+0(FP), R0 SWI $0xa00006 MOVW.CS $-1, R0 MOVW R0, ret+4(FP) RET -TEXT runtime·read(SB),NOSPLIT,$-8 +TEXT runtime·read(SB),NOSPLIT,$-4 MOVW fd+0(FP), R0 MOVW p+4(FP), R1 MOVW n+8(FP), R2 |
