1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build mips64 mips64le
10 #define SYNC WORD $0xf
12 TEXT ·RewindAndSetgid(SB),NOSPLIT|NOFRAME,$0-0
13 // Rewind stack pointer so anything that happens on the stack
14 // will clobber the test pattern created by the caller
17 // Ask signaller to setgid
23 // Wait for setgid completion
27 OR R2, R2, R2 // hint that we're in a spin loop