aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_x86.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/sys_x86.go')
-rw-r--r--src/runtime/sys_x86.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/sys_x86.go b/src/runtime/sys_x86.go
index 0866e3140e..856c73a2f6 100644
--- a/src/runtime/sys_x86.go
+++ b/src/runtime/sys_x86.go
@@ -8,7 +8,7 @@
package runtime
import (
- "runtime/internal/sys"
+ "internal/goarch"
"unsafe"
)
@@ -16,7 +16,7 @@ import (
// and then stopped before the first instruction in fn.
func gostartcall(buf *gobuf, fn, ctxt unsafe.Pointer) {
sp := buf.sp
- sp -= sys.PtrSize
+ sp -= goarch.PtrSize
*(*uintptr)(unsafe.Pointer(sp)) = buf.pc
buf.sp = sp
buf.pc = uintptr(fn)