1
0
mirror of https://github.com/golang/go synced 2024-11-23 21:10:05 -07:00

internal/syscall: add getrandom syscall number for ppc64/ppc64le

Change-Id: I04c1b8f2a9ac4efba227d6c0a20459420cd3dc05
Reviewed-on: https://go-review.googlesource.com/3014
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Shenghou Ma 2015-01-19 12:34:56 -05:00 committed by Minux Ma
parent 746dec575c
commit 6cf5a733d5

View File

@ -12,9 +12,11 @@ import (
)
var randomTrap = map[string]uintptr{
"386": 355,
"amd64": 318,
"arm": 384,
"386": 355,
"amd64": 318,
"arm": 384,
"ppc64": 359,
"ppc64le": 359,
}[runtime.GOARCH]
var randomUnsupported int32 // atomic