diff options
| author | Austin Clements <austin@google.com> | 2023-04-20 16:10:15 +0000 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2023-04-20 16:19:49 +0000 |
| commit | 466e6dae9570ac88ef15c5f1bda9a59d7253cfee (patch) | |
| tree | 916fcafde3a860e6c399a6342d4ac2c426113ef2 /src/cmd/internal/obj/mips | |
| parent | d11ff3f08155b7614485d9b555e97f7a9555ede5 (diff) | |
| download | go-466e6dae9570ac88ef15c5f1bda9a59d7253cfee.tar.xz | |
Revert "internal/abi, runtime, cmd: merge StackSmall, StackBig consts into internal/abi"
This reverts commit CL 486379.
Submitted out of order and breaks bootstrap.
Change-Id: Ie20a61cc56efc79a365841293ca4e7352b02d86b
Reviewed-on: https://go-review.googlesource.com/c/go/+/486917
TryBot-Bypass: Austin Clements <austin@google.com>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/internal/obj/mips')
| -rw-r--r-- | src/cmd/internal/obj/mips/obj0.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cmd/internal/obj/mips/obj0.go b/src/cmd/internal/obj/mips/obj0.go index 469e649c3a..9241dfd631 100644 --- a/src/cmd/internal/obj/mips/obj0.go +++ b/src/cmd/internal/obj/mips/obj0.go @@ -31,6 +31,7 @@ package mips import ( "cmd/internal/obj" + "cmd/internal/objabi" "cmd/internal/sys" "encoding/binary" "fmt" @@ -773,7 +774,7 @@ func (c *ctxt0) stacksplit(p *obj.Prog, framesize int32) *obj.Prog { p = c.ctxt.StartUnsafePoint(p, c.newprog) var q *obj.Prog - if framesize <= abi.StackSmall { + if framesize <= objabi.StackSmall { // small stack: SP < stackguard // AGTU SP, stackguard, R1 p = obj.Appendp(p, c.newprog) @@ -786,8 +787,8 @@ func (c *ctxt0) stacksplit(p *obj.Prog, framesize int32) *obj.Prog { p.To.Reg = REG_R1 } else { // large stack: SP-framesize < stackguard-StackSmall - offset := int64(framesize) - abi.StackSmall - if framesize > abi.StackBig { + offset := int64(framesize) - objabi.StackSmall + if framesize > objabi.StackBig { // Such a large stack we need to protect against underflow. // The runtime guarantees SP > objabi.StackBig, but // framesize is large enough that SP-framesize may |
