src/runtime/rt0_openbsd_ppc64.s
raw| 1 | // Copyright 2023 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. |
| 4 | |
| 5 | #include "textflag.h" |
| 6 | |
| 7 | TEXT _rt0_ppc64_openbsd(SB),NOSPLIT,$0 |
| 8 | BR main(SB) |
| 9 | |
| 10 | TEXT main(SB),NOSPLIT,$-8 |
| 11 | // Make sure R0 is zero before _main |
| 12 | XOR R0, R0 |
| 13 | |
| 14 | MOVD $runtime·rt0_go(SB), R12 |
| 15 | MOVD R12, CTR |
| 16 | BR (CTR) |