From: Michael Munday Date: Fri, 18 Mar 2016 23:17:42 +0000 (-0400) Subject: runtime/internal/sys: add s390x support X-Git-Tag: go1.7beta1~1184 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cc17d1ba76e208cebe447e1b0c85e8e7702f5057;p=gostls13.git runtime/internal/sys: add s390x support Change-Id: I928532b406a3457d2c5f75f4de7d46a3f795192e Reviewed-on: https://go-review.googlesource.com/20939 Reviewed-by: Minux Ma Run-TryBot: Brad Fitzpatrick --- diff --git a/src/runtime/internal/sys/arch_s390x.go b/src/runtime/internal/sys/arch_s390x.go new file mode 100644 index 0000000000..8690571c81 --- /dev/null +++ b/src/runtime/internal/sys/arch_s390x.go @@ -0,0 +1,18 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package sys + +const ( + TheChar = 'z' + BigEndian = 1 + CacheLineSize = 256 + PhysPageSize = 4096 + PCQuantum = 2 + Int64Align = 8 + HugePageSize = 0 + MinFrameSize = 8 +) + +type Uintreg uint64 diff --git a/src/runtime/internal/sys/zgoarch_s390x.go b/src/runtime/internal/sys/zgoarch_s390x.go new file mode 100644 index 0000000000..ce85f20e0a --- /dev/null +++ b/src/runtime/internal/sys/zgoarch_s390x.go @@ -0,0 +1,26 @@ +// generated by gengoos.go using 'go generate' + +package sys + +const TheGoarch = `s390x` + +const Goarch386 = 0 +const GoarchAmd64 = 0 +const GoarchAmd64p32 = 0 +const GoarchArm = 0 +const GoarchArmbe = 0 +const GoarchArm64 = 0 +const GoarchArm64be = 0 +const GoarchPpc64 = 0 +const GoarchPpc64le = 0 +const GoarchMips = 0 +const GoarchMipsle = 0 +const GoarchMips64 = 0 +const GoarchMips64le = 0 +const GoarchMips64p32 = 0 +const GoarchMips64p32le = 0 +const GoarchPpc = 0 +const GoarchS390 = 0 +const GoarchS390x = 1 +const GoarchSparc = 0 +const GoarchSparc64 = 0