1 // Copyright 2020 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 //go:build riscv64 && gc
9 TEXT ·RewindAndSetgid(SB),NOSPLIT|NOFRAME,$0-0
10 // Rewind stack pointer so anything that happens on the stack
11 // will clobber the test pattern created by the caller
14 // Ask signaller to setgid
20 // Wait for setgid completion
24 OR X6, X6, X6 // hint that we're in a spin loop