1 // Copyright 2022 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.
7 TEXT ·RewindAndSetgid(SB),NOSPLIT|NOFRAME,$0-0
8 // Rewind stack pointer so anything that happens on the stack
9 // will clobber the test pattern created by the caller
12 // Ask signaller to setgid
18 // Wait for setgid completion
22 OR R13, R13, R13 // hint that we're in a spin loop